On Sat, May 22, 2010 at 3:50 PM, Quae Quack<quae@daurnimator.com> wrote:
or in the rare situations you do actually need the ipairs function:
provide/write it.
Ah, but there are thousands of lines of Lua code using ipairs; why break them?
otherwise how often are you providing literals in your fors?
PS I have mixed feelings on this one. On the one hand, if I was
introducing a person to the language, then having both pairs and
ipairs to explain would be tricky - whereas everyone gets numeric for.
On the other hand, 'active' deprecation leaves little patches of Lua
code out there that tend to break nastily - like 'for k,v in t do'
which I was very fond of at the time.