4 ms·
> The keyword 'terra' introduces a new Terra function. Why would anyone do this? What's wrong with func, function, def, etc. ?
by gabipurcaru 13y ago
> The keyword 'terra' introduces
a new Terra function.
Why would anyone do this? What's wrong with func, function, def, etc. ?
- kevingadd 13y agoLua already has a keyword for declaring functions
- demallien 13y agoSomething like "tfunction" may have been better - it's obvious that its still a function, and the leading t let's you easily guess / remember the connection to Terra. That minor gripe aside, this looks awesome.
- dlss 13y agobecause a terra file is a lua file, so lua functions are allowed / encouraged. a terra function denotes a region of code with (slightly) different rules (arrays indexed at 0, use of C apis, etc). Making all of lua low level is interesting, but that's not what this project was going for.