Lua Criticism Is Unwarranted
2. nil-handling - no dynamic language has good nil handling. The proper solution is having optional types. People cannot grasp the fact that nils in control flow do not have to be equivalently implemented in data structures. Having nil and false is the same thing when nil is treated as a value than an empty variable which causes confusion because nil is supposed to denote absence. This leads to all such langs having 2 functions for retrieving and checking key's existence. Because treats nil as literal absence of value whilst allowing nil variable declarations is not illogical because since you have declared it, you might use it in the future. Because lua requires explicit declaration of local variables, it does not make sense to ignore a nil-defined variable to be omitted from the syntax but because nil is absence, it does not make sense to treat it as a presence in a mapping structure because mappings are treated as literally dynamic which makes nil a key deleter and a sign of nonexistence. This should not have a bearing on development because false still signifies an extant binding while nil does not
3. Unified containers aka tables If people jerk off to polymorphism, a united container should not hurt because almost all languages have identical indexing syntax for all containers. Similarly all dynamic languages require type checking to distinguish among values and it is easy to write an is_list and is_dict structure
4. Iteration sucks - the iterators are ridiculously very powerful because there is no generator syntax nor any special keywords. It is just a closure. Lua closures are perfectly made and callback based programming is extremely consistent and often idiomatic in lua
5. Local declaration I think it is similar to var declaration in statically typed languages. This has something to do with lua not using tables like python and instead using registers. Global declarations are the programmer's fault because the lua guide clearly states that the global table is a 'table'. So the nil logic applies here.
6. Is too simplistic People mistake terseness with simple here. By simple they usually mean the lack of syntactic sugars which makes many not-so-intuitive things seem much harder in lua. For example list slices in langs with slicing syntax involve a generator across an index range which retains the memory location to allow list manipulation via slices. That is certainly not easy for most noobs who just want a table slice. Now i agree that the stdlib sucks with regards to table ops, there are plenty of good libraries out there
6. No type system Then you have probably taken types as a concept too far to the point of mere visual and heuristic convenience. Types can be largely be understood via set theory which is middle school math. It is a shame then how cs kids and working professionals i have met being unable to grasp anything that does not have the default syntactic sugars of their working languages. Is it so difficult to create an object by just setting some attribs and tagging the table with a name? If you have grasped set theory then you can almost certainly create your own valid type system with ease.
KeyErr
I consider lua to not be an easy language to learn despite it itself advertises as being an easy language to learn. I think it has a simple design but is not simple to learn much like mechanical engineering which goes beyond jamming nuts, bolts, screws to wood and creating simple pulleys for your wells but when a mechanical engineer grad cannot construct a double pulley for their grandpa's well then you know what it means