Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: