4 ms·
Teal is like typescript for Lua: https://github.com/teal-language/tl https://github.com/teal-language/tl
by otikik 4y ago
Teal is like typescript for Lua:
https://github.com/teal-language/tl https://github.com/teal-language/tl
- pull_my_finger 4y agoI want to like Teal, but the lack of nil checks[1] is a pretty big sacrifice in the name of "staying true to Lua idioms". >>> Every type in Teal accepts nil as a valid value, even if, like in Lua, attempting to use it with some operations would cause a runtime error, so be aware! I know you can use (or implement your own in about 8 lines) strict.lua[2], but that just seems like such a shame to omit nil checks from a gradual type system. I still follow the project, but I put a little more hope in Pallene's[3] development, although the aims are slightly different. [1]: https://github.com/teal-language/tl/blob/master/docs/tutorial.md#local-variables https://github.com/teal-language/tl/blob/master/docs/tutoria... [2]: https://www.lua.org/extras/5.1/strict.lua https://www.lua.org/extras/5.1/strict.lua [3]: https://github.com/pallene-lang/pallene https://github.com/pallene-lang/pallene