arrow-kt / arrow-core

Λrrow Core is part of Λrrow, a functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
81 stars 30 forks source link

Clean up constructors Arrow Core Datatypes. #344

Closed nomisRev closed 3 years ago

nomisRev commented 3 years ago

This PR deprecates up all duplicated constructors, and deprecates all just constructors.

This leaves behind only the actual constructors, and the extension constructors.

All constructors of Either after removal of deprecated methods:

val x: Either<String, Int> = Either.Right(1)
val y: Either<String, Int> = Either.Left("one")
val x2: Either<String, Int> = 1.right()
val y2: Either<String, Int> = "one".left()