[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work3) now available
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 20 May 2010 00:01:28 +0400
>> 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.
Err... How would you write this then?
for i = 1, 100 do
print("I would never use numeric for again")
end
> Also, while we are at it, drop the while and repeat statement as well. How many loopy [sic] constructs does a language need?
Repeat-until is a bit superfluous ineed.
While is needed unless we transfor generic for to the something like
C++'s abomination.
Alexander.