Re: Lua 5.1 (work6) now available (for loop)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.1 (work6) now available (for loop)
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2005年5月19日 10:51:05 -0300
> 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