lua-users home
lua-l archive

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


>> Very easy to write ipairs in Lua, if needed. But I'm still not
>> convinced that we need to simplify the language to this point!  For
>> one thing, there's _lots_ of code that uses ipairs.

> ...and lots of examples and documentation, which will not get updated so
> quick:
> http://www.google.com/search?q=ipairs

Backwards compatibility is evil.

> I admit I was confused with ipairs/pairs when I first read about it, but
> I think today I would miss it. Surely it depends on the implementation,
> but it teaches you how to write more efficient code.

ipairs is MUCH slower than numeric for.

Alexander.