-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't break to a labeled loop from inside a for loop #4131
Comments
Not critical for 0.6; removing milestone |
Nominating for milestone 1 (well-defined) so we can discuss whether we actually want to support this. |
I see no reason not to support this. If we can return from the calling function, we can also break to a label. I do see reasons to defer implementing it. :) In particular, I'd like to revisit our label syntax to use lifetime names (which would also give users a way to name the lifetime associated with a block or expression, and resolve the parsing issues we encountered before, since lifetime names are their own kind of token). |
In that case, nominating for milestone 3 (feature-complete) instead. |
accepted for feature-complete milestone |
#6997 is related because this will be trivial when we replace the current |
The old for loop is being removed, |
Because
for
loop bodies are closures, implementing this case is a PITA. I haven't done it yet.e.g.
The text was updated successfully, but these errors were encountered: