3 ms·
I agree with all of the above and will ad a few things that attracted me to use Lua as the scripting language for our game engine: - Data can be easily constru
by squidbot 16y ago
I agree with all of the above and will ad a few things that attracted me to use Lua as the scripting language for our game engine:
- Data can be easily constructed inline without a lot of extra syntax
- The interpreter is very fast
- Functions as first class objects
- Closures
- Meta-tables
All of these things make Lua very expressive and concise for designers, while giving a lot of control to make things work correctly to the programmers.
A few cons:
- the built in error handling is not great, we corrected it.
- variables are global by default, which can make typos become runtime errors, we corrected this as well