You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In summary, using IterableOnceOps would make it possible to write code polymorphic to Iterable or Iterator, but methods defined by IterableOnce (such as iterator) are not available on IterableOnceOps values.
We should add abstract definitions of the methods declared in IterableOnce, to the IterableOnceOps type.
The text was updated successfully, but these errors were encountered:
Fixes scala/bug#11675
This change is backward compatible, because nothing is removed.
It should also be forward compatible, because `IterableOnceOps[A]` had
`IterableOnce[A]` as a self-type on 2.13.0, meaning that code relying on the
newly introduced methods also worked on 2.13.0 because any `IterableOnceOps[A]`
instance was also effectively an `IterableOnce[A]`.
Fixes scala/bug#11675
This change is backward compatible, because nothing is removed.
It should also be forward compatible, because `IterableOnceOps[A]` had
`IterableOnce[A]` as a self-type on 2.13.0, meaning that code relying on the
newly introduced methods also worked on 2.13.0 because any `IterableOnceOps[A]`
instance was also effectively an `IterableOnce[A]`.
Fixes scala/bug#11675
This change is backward compatible, because nothing is removed.
It should also be forward compatible, because `IterableOnceOps[A]` had
`IterableOnce[A]` as a self-type on 2.13.0, meaning that code relying on the
newly introduced methods also worked on 2.13.0 because any `IterableOnceOps[A]`
instance was also effectively an `IterableOnce[A]`.
See this contributors discussion for the motivation.
In summary, using
IterableOnceOps
would make it possible to write code polymorphic toIterable
orIterator
, but methods defined byIterableOnce
(such asiterator
) are not available onIterableOnceOps
values.We should add abstract definitions of the methods declared in
IterableOnce
, to theIterableOnceOps
type.The text was updated successfully, but these errors were encountered: