Skip to content

Remove do loops #2230

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 Apr 17, 2012 · 3 comments
Closed

Remove do loops #2230

brson opened this issue Apr 17, 2012 · 3 comments
Labels
A-codegen Area: Code generation A-grammar Area: The grammar of Rust A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Apr 17, 2012

There is exactly one do loop outside of tests in the Rust code base. We have lots of other ways to iterate.

@catamorphism
Copy link
Contributor

I agree with this. I never liked do loops from the beginning, just because it seems like they should desugar to while loops (or the other way around). And they can be implemented with a macro (I assume).

@graydon
Copy link
Contributor

graydon commented May 9, 2012

I don't really care. loop + break gets you to the same place.

@paulstansifer
Copy link
Contributor

closed by 13c924c

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Add `#![feature(yeet_expr)]`

Hopefully enough for rust-lang#98036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-grammar Area: The grammar of Rust A-type-system Area: Type system E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

4 participants