News for hackers. Stuff that matters.
Re:Lua: Good, bad, and ugly parts by vor_ on Saturday March 09, 2013 @02:36PM (#5349342)
There's no continue. Instead, you must use goto.

> While true, you should iterate integer-key tables using ipairs and hash tables using pairs.

In my opinion, this makes Lua's combination of arrays and dictionaries pointless since one must distinguish between them anyway for iteration.

Re:Lua: Good, bad, and ugly parts by Hinrik on Sunday March 10, 2013 @04:02PM (#5353222)
Do you really consider that to be a drawback? How often do you find yourself wanting to iterate a datastructure without knowing whether it's an array or a hash?