lua-users home
lua-l archive

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


> Perhaps I can do a better job explaining if I actually understood why
> adding the extra (ugly) syntax for basic table iterations makes Lua a
> better language.

As Myke pointed out, this is an old decision. The rationale is that we
do not see "pairs" as the "basic table iteration". I, for instance, use
ipairs much more frequently than pairs.  I believe that is true for many
other programmers.

-- Roberto