3 ms·
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,
by vor_ 14y ago
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.
- Hinrik 14y agoDo 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?