Lua
🦔 🦔 🦔
Lua is a programming language that's often used in embedded contexts. It's pretty small and pretty cute.
Please enjoy a little REPL up above.
I do like working with Lua, though some things about it mildly annoy me:
- No assignment operators like
+=
- No destructuring assignments like
[a, b] = tbl
~=
instead of!=
- No
continue
in loops - Inability to have statements after
return
so I have to dodo return end
whenever I want to quickly return while testing - No shorthand for function definitions like JavaScript's arrow functions
- No syntax for coroutines
- No string interpolation
Most of these are syntactic, which is interesting. The common one-based array indexing complaint doesn't really bother me that much in practice.
It'd be nice to have some more batteries, but it's fine, I guess.