Re:Mun: A programming language empowering creation through i...
by nerdponx on Thursday February 18, 2021 @02:06PM
(#26184075)
If you're interested in "Lua with types", check out Teal aka "Typed Lua" aka "Tl": https://github.com/teal-language/tl. It compiles to Lua and is available as a single-file Lua module.
Re:Mun: A programming language empowering creation through i...
by samatman on Thursday February 18, 2021 @04:05PM
(#26185525)
Alas, every type in Teal is nil-able, so it really is a TypeScript for Lua.
Which is no small thing, but still, unfortunate.
Re:Mun: A programming language empowering creation through i...
by brundolf on Thursday February 18, 2021 @10:55PM
(#26189494)
TypeScript guards against nulls with the flip of a flag. That's its biggest benefit in my opinion.
1. Does it continue the billion dollar mistake (null)?
2. Does it allow type parameters so I can write a generic Map that works with any kind of keys and values?