Skip to content

Loop constructs without parens #728

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

Closed
brson opened this issue Jul 22, 2011 · 3 comments
Closed

Loop constructs without parens #728

brson opened this issue Jul 22, 2011 · 3 comments

Comments

@brson
Copy link
Contributor

brson commented Jul 22, 2011

Now that we have if and alts without parens I find myself wanting to write loops without them as well. Is this possible?

@marijnh
Copy link
Contributor

marijnh commented Jul 22, 2011

the only tricky thing is that 'each' would no longer be a valid typename, I think

@graydon
Copy link
Contributor

graydon commented Jul 22, 2011

yeah. 'for' and 'for each' are, I hope, going to unify into 'for'-that-means-iterator-call. that is, we'll make for mean what for each means now, and remove the linear-for-loop specialization.

@marijnh
Copy link
Contributor

marijnh commented Jul 28, 2011

This has been implemented as part of the recent syntax overhaul.

@marijnh marijnh closed this as completed Jul 28, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Openbsd kqueue

The PR supersede rust-lang#613 to add exception on the testsuite.
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants