On Wed, Dec 4, 2019, 3:31 AM Jan Bakuwel <[email protected]> wrote:

> Ada even has "named loops", a really cool feature that allows you to exit
> an outer loop inside an inner loop by "exiting" the loop referring to it's
> name
>

While I am among the everybody not convinced by needing "end" constructs,
I've often wanted named loops. I know approaches to this have been proposed
many times, and they all have their own warts. E.g. an ad hoc pseudo code
that may or may not match any previous proposal:

for x in stuff as outer:
    for y in other_stuff as inner:
        ...
        if cond:
            break outer

But we all manage without it.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ZG6JPF63W5RGJJ3F7CUUBGJYL6VKT5OC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to