-
Notifications
You must be signed in to change notification settings - Fork 334
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
Deprecated either.{right,left}.value. #975
base: 3.1.x
Are you sure you want to change the base?
Conversation
the deprecations will be reversed in 2.12.0-RC2 due to negative community feedback they might still eventually go forward, so that doesn't necessarily mean this PR should be discarded — you could make a decision about what version of the code you like best, and perhaps leave feedback on scala/scala#5135 |
The deprecations are back as of 2.13 so can we get this patch applied please? |
Because of the time that passed since the last comment a quick check. The deprecation is still in place in |
at present Welcome to Scala 2.13.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_202).
Type in expressions for evaluation. Or try :help.
scala 2.13.1> Right("foo").withLeft[Int]
res0: scala.util.Either[Int,String] = Right(foo)
scala 2.13.1> res0.left
res1: scala.util.Either.LeftProjection[Int,String] = LeftProjection(Right(foo))
scala 2.13.1> res0.right
^
warning: method right in class Either is deprecated (since 2.13.0): Either is now right-biased, use methods directly on Either
res2: scala.util.Either.RightProjection[Int,String] = RightProjection(Right(foo)) |
Okay thanks for the heads up :) |
Would love to get this merged. |
Would really like to see this merged or some variation of it. Using the |
I wonder, what exactly is missing in this PR that prevents it from being merged finally? It hangs open since 2016 already. |
@cla-bot[bot] check |
Hi @Lasering, we require contributors to sign our Contributor License Agreement, and we don't have yours on file. In order for us to review and merge your code, please access https://www.artima.com/cla/choose-type to sign our Contributor License Agreement. Your effort is highly appreciated. Thank you. |
The cla-bot has been summoned, and re-checked this pull request! |
This can be closed, as it was addressed in #1895. |
Fixes #972