-
Notifications
You must be signed in to change notification settings - Fork 309
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
About fallible iterators #844
Comments
I'd like to take the approach described in #814 (comment); i.e.:
With this approach, we can give users a cutting-edge experience without increasing our MSRV. And, by using the |
From #814 (comment)
so I think it's natural to copy part (here I would largely prefer |
Yes, avoiding conflict with libcore is important, and it's why I'm recommending using the |
@phimuemue What do you think on this matter? What would be the inconvenients of using Rust nightly (for one feature only)? As we would be able to use the |
I think replicating Try in itertools is fine. I’m not an expert on how we implement it in a waterproof way that does not leak the details (the „pub-in-priv“ thing), but I think it is possible (at least to a certain extent). Maybe I misunderstand you, @Philippe-Cholet, but I do not see why nightly would be required (especially for the average contributor). Regarding ok vs maybe, I have no preference, but I’d like to be consistent. |
Instead of copy/paste, if we were to use the nightly unstable feature related to |
Ah, I see. I am reluctant to use nightly (don’t want to do conditional compilation if not strictly necessary). |
So we agree on jswrenn proposition. Then
|
FWIW, (and |
I just created the label "fallible-iterator" and labelled (only opened) related issues and pull requests where the iterator item is fallible: results mostly, options too.
It's one recurring topic, and a proper discussion might be useful.
To start, I think our adaptors of iterators of results should be
_ok
-suffixed.try_
-prefixed should be reserved to methods tied to the currently unstableTry
trait.The text was updated successfully, but these errors were encountered: