@@ -161,12 +161,14 @@ sealed abstract class Either[+A, +B] extends Product with Serializable {
161
161
* for (e <- interactWithDB(someQuery).left) log(s"query failed, reason was $e")
162
162
* }}}
163
163
*/
164
+ @ deprecated(" use swap instead" , " 2.13.0" )
164
165
def left = Either .LeftProjection (this )
165
166
166
167
/** Projects this `Either` as a `Right`.
167
168
*
168
169
* Because `Either` is right-biased, this method is not normally needed.
169
170
*/
171
+ @ deprecated(" Either is now right-biased" , " 2.13.0" )
170
172
def right = Either .RightProjection (this )
171
173
172
174
/** Applies `fa` if this is a `Left` or `fb` if this is a `Right`.
@@ -508,6 +510,7 @@ object Either {
508
510
* @author <a href="mailto:research@workingmouse.com">Tony Morris</a>, Workingmouse
509
511
* @see [[scala.util.Either#left ]]
510
512
*/
513
+ @ deprecated(" use swap instead" , " 2.13.0" )
511
514
final case class LeftProjection [+ A , + B ](e : Either [A , B ]) {
512
515
/** Returns the value from this `Left` or throws `java.util.NoSuchElementException`
513
516
* if this is a `Right`.
@@ -651,6 +654,7 @@ object Either {
651
654
*
652
655
* @author <a href="mailto:research@workingmouse.com">Tony Morris</a>, Workingmouse
653
656
*/
657
+ @ deprecated(" Either is now right-biased" , " 2.13.0" )
654
658
final case class RightProjection [+ A , + B ](e : Either [A , B ]) {
655
659
656
660
/** Returns the value from this `Right` or throws
0 commit comments