-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
iter conservation efforts: save the endangered .iter() and .into_iter() #3119
iter conservation efforts: save the endangered .iter() and .into_iter() #3119
Conversation
Also needs to be updated in |
a5d296a
to
8f30cb2
Compare
@flip1995 Done, thanks. |
More serious supporting information: many crates turn this off, including crates like cargo, and clap. |
Oh and the tests/ui/update-references.sh 'target/debug/test_build_base' 'for_loop.rs' |
Make explicit_iter_loop and explicit_into_iter_loop allow-by-default, so that people can turn them on if they want to enforce that style; avoid presenting them as *the* idiomatic Rust style, rather than just *a* style.
8f30cb2
to
7799883
Compare
@flip1995 Done. |
(The appveyor failure looks spurious.) |
Thanks! Appveyor error is unrelated: #3118 |
@joshtriplett could you leave the requested comment on #3230 ? This is a minor PR so it doesn't really count, but might as well get the sign off if I can 😄 |
On October 2, 2018 4:44:13 AM PDT, Manish Goregaokar ***@***.***> wrote:
@joshtriplett could you leave the requested comment on #3230 ? This is
a minor PR so it doesn't really count, but might as well get the sign
off if I can 😄
Done.
|
Every day, more iters are lost, discarded as unwanted, to such hazards
as "concision" and "brevity". Won't someone think of the poor .iter()
and .into_iter(), that future generations may continue to admire them
and their self-documenting properties in their many and varied natural
habitats, and not merely in a zoo of (en)closures?
Make explicit_iter_loop and explicit_into_iter_loop allow-by-default, so
that people can turn them on if they want to enforce that style; avoid
presenting them as the idiomatic Rust style, rather than just a style.