4 ms·
> There is no mental overhead like with Python where you have to use square brackets for lists and curly braces for dictionaries. Seriously?
by nimble 13y ago
> There is no mental overhead like with Python where you have to use square brackets for lists and curly braces for dictionaries.
Seriously?
- kazagistar 13y agoHe forgot to mention objects, which are also almost-dicts in python, but with a ton of magic rules like slots and methods storing their object when assigned and whatnot. Lua has pretty nice and lightweight prototype OOP, which boils down to a few uses of : instead of . on tables and setting the __index of the metatable to be the parent table. That's not to say python is not an excellent language, just that lua is a lot simpler.