-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Rename Map stepper methods #8095
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
Conversation
other direction:
|
thanks - I forgot about MiMa. I'll update all my PRs |
No worries, sorry my copy/paste handiwork was not super useful, since you have to split them out into forward/backward. Grepped away a bit too much :) |
Rename `Map#{key,value}Stepper` to `Map#{keys,values}Stepper`.
eaa0203
to
47018b5
Compare
@adriaanm do they get assigned to separate keys? |
No, not for sbt's key config. I guess Adriaan is used to non-prerelease scala/scala dev days where MiMa filters are added to the split https://github.com/scala/scala/blob/2.13.x/src/reflect/mima-filters/2.13.0.backwards.excludes and https://github.com/scala/scala/blob/2.13.x/src/reflect/mima-filters/2.13.0.forwards.excludes files. |
You missed a spot: scala/src/library/scala/collection/convert/StreamExtensions.scala Lines 86 to 87 in b616ff0
I'll take a look at what test case is missing, why the tests didn't catch this. |
Hmm, I wonder, if we rename |
I dropped the tests for |
ced2004
to
a5b5ba3
Compare
A sorted map `CC` extends `MapOps[_, _, Map, _]`, not `MapOps[_, _, CC, _]`, so the extension methods were not available. Plus some small cleanups.
a5b5ba3
to
ee217db
Compare
My original comment on Slack was: "Another oddity: I would prefer consistency but I don't really like I think |
Given autocomplete, names matter a little less. Consistency is nice, but so is constancy :-) |
|
Ok, let’s keep things as they are and close this one. |
Except that we call it |
I guess we migrate to |
keysiterator flows better than key-iterator |
There is consistency, you just have to chose the right metric :-) |
OK, I'll pull out my bugfixes that I pushed to this PR into a new one. |
"Bob, I'm going to need to check this map. Please give me either all the keys or give me a key iterator. Either way, I going to have to check each key one-by-one." Flows, no problem, IMO. |
Either way, name bikeshedding doesn't really belong in the RC cycle. |
Rename
Map#{key,value}Stepper
toMap#{keys,values}Stepper
.See scala/scala-dev#628 (comment)