[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: David Kastrup <dak@...>
- Date: Sun, 23 Jan 2011 19:03:47 +0100
T T <t34www@googlemail.com> writes:
> 2011/1/23 GrayFace <sergroj@mail.ru>:
>
>> '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
> discussion.
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.
--
David Kastrup