lua-users home
lua-l archive

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



I use continue all the time.

It allows you to avoid excessive nesting of code / if statements in a loop.

For that reason, it's very useful.




On 23/01/2011 9:38 a.m., Miles Bader wrote:
Axel Kittenberger<axkibe@gmail.com>  writes:
or maybe we just admit that standard continue is a good compromise
between more flow control while avoiding the jumping hell goto's open
"ymmv"

I don't use continue at all (though I use break all the time) -- though
I of course have always known about it, it's just not a habit I ever
really got into with C -- and I don't seem to miss it, nor do I seem to
end up using goto as an alternative.

So I tend to roll my eyes a lot when reading this threads, with people
constantly swearing their eternal allegiance to continue.  As far as I
can see, it's not really all that important, and certainly not worth the
amount of hot air expended over it...

-miles


--
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com