-
Notifications
You must be signed in to change notification settings - Fork 21
Move scala.util.Try
and scala.util.Either
to scala
package.
#11268
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
Comments
Also refs :scala/scala-dev#323 |
Why? Note that (edit: there's some discussion on this in scala/scala#7425) |
@dwijnand I first came out with this idea and there is some discussion in scala/scala#5677 too.
I think these common types live in |
BTW, there is https://github.com/vavr-io/vavr/tree/master/vavr/src/main/java/io/vavr/control which mostly alias with scala's type layout, cc @danieldietrich . |
I think you mean Now there is |
perhaps we could have made a different decision here initially, but I don't see good cost/benefit in changing it now |
As mentioned, discussion on PRs: The latter unmerged PR represents consensus opinion, the unmerged will of the people. ( Counterfactual 2.13: Also reduced ambition of library reducing diet, so "eliminate To coin a phrase,
Also Seth:
Scala 3 is picking up steam on library changes, There are related issues in Scala 3 about namespace for annotations. |
Problem
Currently, these standard types are not top level and live in
scala.util.*
package. They should live in the top level.Perposal
Move
scala.util.Try
andscala.util.Either
toscala
package,and annotation type alias inscala.util
's package object to keep code compile,until we decide what's next move.The text was updated successfully, but these errors were encountered: