lua-users home
lua-l archive

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


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