[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: I'd give my right arm for a continue statement
- From: David Kastrup <dak@...>
- Date: Sun, 23 Jan 2011 19:03:47 +0100
T T <email@example.com> writes:
> 2011/1/23 GrayFace <firstname.lastname@example.org>:
>> 'Continue' checks conditions of all other loops, so it would be very
>> very strange if it's different for repeat..until.
>> Not to mention all other languages.
> Then it could be named 'reloop' instead of 'continue' or whatever else
> is deemed appropriate. This is really of secondary importance to this
The "continue" for for-loops would jump to the iteration construct, not
the top of the loop body (as reloop would).
It would be conceivable to have both redo as well as continue (they
would both make some sort of sense in a for loop), and not allow
continue at all for repeat..until.
I don't like that all too much, but it would also make sense.