Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upStabilize step_by for 1.2.0 #25798
Conversation
rust-highfive
assigned
brson
May 26, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
This comment has been minimized.
This comment has been minimized.
|
There was a discussion about
This is also #23588. Is any of this resolved? Does stabilizing hinder any progress on this? |
This comment has been minimized.
This comment has been minimized.
|
I guess that we could make negative numbers in |
alexcrichton
added
the
T-libs
label
May 26, 2015
This comment has been minimized.
This comment has been minimized.
|
As @killercup mentioned, the main outstanding question preventing this API from stabilizing is deciding what to do about negative steps. Adding undefined behavior probably isn't something we want to do to a core iterator adaptor, so we'll need to make a decision on this one way or another. There's also the question about the Just points to consider! |
This comment has been minimized.
This comment has been minimized.
|
Yeah, we may still want to wait to stabilize, since we don't have negative steps yet. I think that negative steps should (conceptually) work like reversing the range and stepping over the reversed range with a positive step. (EDIT) I think that's how it works for two-sided ranges now, but not one-sided ranges. |
alexcrichton
added
the
I-needs-decision
label
Jun 2, 2015
This comment has been minimized.
This comment has been minimized.
|
|
krzysz00
force-pushed the
krzysz00:stabilize-step-by
branch
from
a2d77f8
to
76a3006
Jun 7, 2015
This comment has been minimized.
This comment has been minimized.
|
Ok, after some discussion it seems like it may still be somewhat premature to stabilize this function just yet. We'd like to take some more time to talk about the interaction of |
krzysz00 commentedMay 26, 2015
step_byis generally useful (it was used in multiple places in thestandard library). When it landed in mid-March, it was marked unstable
because it was a "recent addition" to the API. It's been two months, and
there seems to be no controversy about its inclusion in Rust. Therefore,
I propose that we stabilize
step_by.