lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mark Feldman wrote:
There are a few other "syntactic sugar" constructs in Lua, so
why is ipairs singled out?

It's trivial to add yourself, as demonstated in PIL:
[...]

It's a matter of convenience. Those wanting ipairs to stay, want it out-of-the-box. (I, for one, wouldn't like to "require 'ipairs'" in every little script I write).

--
Shmuel