Skip to content

Support all breaking changes listed in the FAQ #57

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

Closed
julienrf opened this issue Jun 25, 2018 · 3 comments
Closed

Support all breaking changes listed in the FAQ #57

julienrf opened this issue Jun 25, 2018 · 3 comments
Milestone

Comments

@julienrf
Copy link
Contributor

See: https://github.com/scala/collection-strawman/wiki/FAQ#what-are-the-breaking-changes

There are still some breaking changes for which we don’t have a migration rule.

@julienrf julienrf added this to the 2.13.0-M5 milestone Jun 25, 2018
@MasseGuillaume
Copy link
Contributor

MasseGuillaume commented Jun 25, 2018

-val xs: List[Int] = ys.map(f)(collection.breakOut)
+val xs = ys.view.map(f).to(List)
map.zip(iterable)
map.zip(iterable).toMap 
-xs + 1 - 2
+xs ++ Set(1) -- Set(2)
-xs.to[List]
+xs.to(List)
-Set(1) + (2, 3)
+Set(1) + 2 + 3
-mutable.Set(1) + 2
+mutable.Set(1).clone() += 2
-mutable.Map(1 -> 2).updated(1, 3)
+mutable.Map(1 -> 2).clone() += 1 -> 3
-kvs.mapValues(f)
+kvs.mapValues(f).toMap
-xs1.sameElements(xs2)
+xs1.iterator.sameElements(xs2)  
LinearSeq(1, 2, 3)
List(1, 2, 3) 
  • SeqForwarder, MutableList, StreamView no longer exist
  • collection.Map no longer have -- operation

@julienrf
Copy link
Contributor Author

julienrf commented Jun 25, 2018

@MasseGuillaume Following up on the discussion in #58 and #62, I suggest that we put aside these two items for now and we move forward to the next steps. What do you think?

@julienrf
Copy link
Contributor Author

I’m closing this issue because we already have a specific issue for breakOut and we have no plans for SeqForwarder, MutableList and StreamView. I’ve created #68 for Map.--.

martijnhoekstra pushed a commit to martijnhoekstra/scala-collection-compat that referenced this issue Nov 9, 2022
Add in-place shift operations to mutable.BitSet
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

No branches or pull requests

2 participants