[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work3) now available
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 19 May 2010 20:54:57 +0400
>> 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.