4 ms·
I'd love to see a modern type system available as a Lua replacement. A couple things I didn't see skimming the docs: 1. Does it continue the billion dollar mis
by cheriot 6y ago
I'd love to see a modern type system available as a Lua replacement. A couple things I didn't see skimming the docs:
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?
- nerdponx 6y agoIf you're interested in "Lua with types", check out Teal aka "Typed Lua" aka "Tl": https://github.com/teal-language/tl https://github.com/teal-language/tl. It compiles to Lua and is available as a single-file Lua module.
- nicoburns 6y agoFrom my reading there is no null, and no generic types either.
- jasfi 6y agoTake a look at Nim, it's described as Python with types, but could be what you're looking for.