6 ms·
So another typed Lua, huh? What are the main differences to teal?
by DarkWiiPlayer 6y ago
So another typed Lua, huh? What are the main differences to teal?
- chabad360 6y agoIt actually only gained proper type support relatively recently (I don't remember exactly when as I haven't touched it in a while). It also has some other features other than types (again, haven't used it in a long time, so I can't really remember, but have a look around). The real difference tho is age, Luau has been around since 2006 or so (used to be known as Rbx.Lua).
- implicit 6y agoHello! I am the lead developer of the Luau type checker. I actually hadn't heard of Teal! I don't think it existed when we started. Judging from the Teal documentation, I'd venture that it looks pretty similar to Luau in everyday use. If I were to guess, I'd venture that the biggest differences are probably the kind of type inference we do (Luau's inference engine draws inspiration in equal parts from OCaml and TypeScript), a bunch of Roblox-specific features, and that our inference engine is all C++ for performance.
- DarkWiiPlayer 6y agoOh, that's interesting :D I've been meaning to try out roblox for a while and lately I've been getting pretty hyped about teal (for context, the guy behind it is the creator of luarocks and htop, among others) so I might see the differences up close sooner rather than later :D EDIT: (unrelated) Already not looking forward to people asking "Lua" questions about typing and constantly having to explain that Lua is not just a roblox thing xD