3 ms·
> As Teal shows, [official typed Lua] would require giving up one of Lua's core features: tables as the language's single data structure. Is that true ... you
by tiffanyh 1y ago
> As Teal shows, [official typed Lua] would require giving up one of Lua's core features: tables as the language's single data structure.
Is that true ... you can't have typed tables without giving up tables as a data structure?
- krapp 1y agoYou can't have typed tables without giving up tables as the language's single data structure. You would have tables and typed tables which are essentially just arrays with extra steps.
- 90s_dev 1y agoNot with type erasure like TypeScript does. Then it would just be type checking hints as to how the table is used, not a different kind of table. Teal does this.