[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I'd give my right arm for a continue statement
- From: Dirk Laurie <dpl@...>
- Date: Sun, 23 Jan 2011 21:04:09 +0200
On Sun, Jan 23, 2011 at 08:16:10PM +0200, Mark Hamburg wrote:
> Three seemingly simple answers to the repeat/until v continue problem (in
> order of decreasing harshness but more complex definitions):
>
I haven't been following this discussion all that closely, so please
forgive me if I have missed a point that has been made.
The most common use of continue occurs when it is required once per
loop. In that case, it actually costs four extra keystrokes.
while condition do
-- some code
if test then
continue
end
-- more code
end
while condition do
-- some code
if test then
else
-- more code
end
end
If you require it more than once, you'll save only whitespace.
It will still need four extra non-blank characters per instance.
You expect, seriously expect, Roberto to add another keyword just
so you can do THIS???
Dirk
- References:
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, HyperHacker
- Re: I'd give my right arm for a continue statement, Michal Kottman
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, Axel Kittenberger
- Re: I'd give my right arm for a continue statement, David Kastrup
- Re: I'd give my right arm for a continue statement, GrayFace
- Re: I'd give my right arm for a continue statement, T T
- Re: I'd give my right arm for a continue statement, David Kastrup
- Re: I'd give my right arm for a continue statement, Mark Hamburg