[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: Leo Razoumov <slonik.az@...>
- Date: Sun, 23 Jan 2011 22:35:20 -0500
On Sun, Jan 23, 2011 at 07:42, David Kastrup <dak@gnu.org> wrote:
>
> Not at all. It would reenter the loop at the top. Since you usually
> use "continue" when the proper completion of the loop is foregone, and
> since in repeat-until the loop condition is evaluated _after_ the
> completion of the loop, there is really no point except some sense of
> compatibility or whatever else to jump to the evaluation of the loop:
> the perceived problem in the implementation was "what do we do if the
> variables of the loop condition are not yet declared", and that is just
> a subset of "the loop condition is not even established".
>
This makes perfect sense to me and leads to readable code. Skipping to
the end-of-a-loop has potential scoping problems but skipping to
beginning-of-a-loop seems to have none. Thanks David!
--Leo--