[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work3) now available
- From: Petite Abeille <petite_abeille@...>
- Date: Wed, 19 May 2010 21:57:23 +0200
On May 19, 2010, at 8:59 AM, David Kastrup wrote:
> If both do exactly the same, the logical thing to keep would be ipairs,
> not the numeric loop. Simplifies the language.
FWIW, I would second that. Drop the numeric loop. And keep ipairs alongside the generic for statement.
Also, while we are at it, drop the while and repeat statement as well. How many loopy [sic] constructs does a language need?
while exp do block end
repeat block until exp
for Name `=´ exp `,´ exp [`,´ exp] do block end
for namelist in explist do block end