[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: I'd give my right arm for a continue statement
- From: Axel Kittenberger <axkibe@...>
- Date: Sat, 22 Jan 2011 19:57:38 +0100
The sarcastic story as far I read it, the lua gods are waiting for a
scintillation how to solve it in a general way. So far this has not
yet happened. Maybe the holy ghost does its job one day, and we going
to see an implementation that baffles us all or maybe we just admit
that standard continue is a good compromise between more flow control
while avoiding the jumping hell goto's open. I can understand and
respect the wish to keep a language as simple as possible, but
standard continue make many loops simpler if used right and the
applications more maintainable. Maybe it would be the sugar 5.2 needs
to make it attractive.
BTW. I'm against break N or break [-N], if N is an integer and not a
label. But I could accept continue [n] where n indicates the amount of
cycles to jump forward, that is the number of times to call next(). 0
is redo, 1 normal continue, 2 a skip etc.
On Sat, Jan 22, 2011 at 10:23 AM, steve donovan
> On Sat, Jan 22, 2011 at 11:13 AM, Michal Kottman <firstname.lastname@example.org> wrote:
>> You can find a short answer here: http://www.luafaq.org/#T1.26
> Although it's not the whole story, and should be updated.
> The best answer is by Roberto, quoted by David Manura in this post:
> steve d.