[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why should `break' and `continue' in functions not break loops runni
Re: Why should `break' and `continue' in functions not break loops running outside of the function?
Sat, 30 Oct 2021 20:23:58 +0300
On Sat, Oct 30, 2021 at 6:55 PM Chet Ramey <firstname.lastname@example.org> wrote:
> You might be interested in
The only argument against dynamic scoping there is that one might use
`break 1000' for exiting the outermost lexically enclosing loop and I
don't think anyone does that, you'd just count loops and specify the
exact number. Had it not been too late, I'd suggest `break 0' have
that effect (and `break -1' continue the outermost loop in progress,
and so on).
> There was a discussion on the austin-group mailing list back in 2016
> accompanying this defect report.
This I was interested in, but mail-archive doesn't have a copy, and
the austin group collaboration site doesn't show many of the replies
to that thread, including yours.
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU email@example.com http://tiswww.cwru.edu/~chet/