Skip to content
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

Replace for loop with iterators #3054

Merged
merged 1 commit into from
Aug 29, 2016
Merged

Conversation

matklad
Copy link
Member

@matklad matklad commented Aug 29, 2016

Hi! I've figured out how to replace a loop with iterators here :)

Not sure that this is an improvement, but my experience tells me that "functional" approach, while less obvious, is more robust.

Feel free to merge or close!

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Ah yeah I feel like the gymnastics with Result -> Option<Result> may decrease readability here a bit, so I'm gonna close for now. Good to always explore though!

@alexcrichton alexcrichton merged commit 4f21500 into rust-lang:master Aug 29, 2016
@alexcrichton
Copy link
Member

Ok, or maybe I'll just automatically hit the merge button...

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

Successfully merging this pull request may close these issues.

3 participants