-
Notifications
You must be signed in to change notification settings - Fork 205
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
"while-case" and "do-while-case" #2536
Comments
This is useful, but I'm going to move it to later because I don't want to keep throwing new stuff at the poor beleaguered implementers. |
With the do-while statement, though, it's quite surprising to have the declaration of |
OK, so maybe just |
Agree. Recently wished I had But just allowing (That's why we need the full "fencepost" loop:
Where variables declared in the |
The patterns proposal adds a new "if-case" statement form for matching a single refutable pattern:
Should we also support case inside
while
anddo-while
loops? I see no reason why not and it could sometimes be handy:The text was updated successfully, but these errors were encountered: