I'd open bugs. Especially the second.
scala> val xs = new mutable.ArrayBuffer() ++= Seq(1,2,3).par
<console>:10: error: type mismatch;
found : scala.collection.parallel.ParSeq[Int]
required: scala.collection.TraversableOnce[?]
val xs = new mutable.ArrayBuffer() ++= Seq(1,2,3).par
^
-- Aleksandar Prokopec, Doctoral Assistant LAMP, IC, EPFL http://people.epfl.ch/aleksandar.prokopec
The second one (CCE) I fixed some time ago.
Should I reopen a pull request?
| 309 |
- evaluateCombiners(trie) |
|
| 310 |
- trie.asInstanceOf[HashMap[K, Repr]] |
|
| 309 |
+ evaluateCombiners(trie).asInstanceOf[HashMap[K, Repr]] |
|
The `++=` from `Growable` accepting `GenTraversableOnce` instead of `TraversableOnce` is something that was around since 2.9.0.
We could change it now at the very last minute, but that would require reintroducing the @bridge annotation, I believe, which has been deprecated for 2.10.0.
As for the `groupBy` fix, in order not to exceed the estimated number of commits until 2.10.0 final, perhaps the change can be sneaked into some other critical (collection) fix commit. It's only this:
The patch is small. Please submit against 2.10.x. this is critical.
The second one (CCE) I fixed some time ago.
The `++=` from `Growable` accepting `GenTraversableOnce` instead of `TraversableOnce` is something that was around since 2.9.0.
We could change it now at the very last minute, but that would require reintroducing the @bridge annotation, I believe, which has been deprecated for 2.10.0.
Well, in that case we can change `++=` to take `GenTraversableOnce` as a parameter.
There are related changes in other methods, most notable of which are:
Shrinkable.--=
TraversableLike.++:
Stack.pushAll
Stream.append
BufferLike.++=:
BufferLike.prependAll
Array.flatten