Stack Overflow survey 2018. insights.stackoverflow.com/survey/2018/ I will never understand why #LuaLang ends up among the most dreaded languages... OTOH #Redis is the most loved database.
Conversation
Replying to
Seriously... You don't see the many flaws? It's fine for what it is, but by any modern measure, it's got a ton of warts.
3
that’s a fair argument but what about people being in love with Javascript, which surely has a non trivial amount of flaws? IHMO the problem with Lua is more that it is different without adding anything really important (lang-wise) to the table (no pun…).
4
1
4/ I agree that it’s different without adding much. Weird meta programming/metatable, poor string/table APIs, 1-based indexes, odd operators
1
1
The metatables mechanism is a huge strength of the language IMO. 1-based indexes was not weird in the early 90s when it was created. Operators -> I don't what you are talking about except ~=...
3
I have never been a huge fan of tables as both maps and sequences so I can give you that. The string API is minimal and kind of looks like C.
1
We ran into a huge production issue that took weeks to debug because of tables as maps and lists:
openmymind.net/Lua-JSON-turns
3
Yep, I also agree with you that the unification of the data structures is better on paper than in the real world unfortunately. Also PHP kinda followed this approach and was a problem there as well. Ruby/Python way is preferable IMHO.


