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
Either Algebraic Data Type #250
Comments
Imported From: https://issues.scala-lang.org/browse/SI-250?orig=1
|
@tonymorris said: |
@tonymorris said: |
@tonymorris said: |
@tonymorris said: |
@odersky said: |
I propose the Either ADT similar to Haskell's Data.Either. I also propose adding some functions to scala.Function (id and const), which are used in the implementation of Either.
Please note that the submitted patch has been thoroughly tested using ScalaCheck, but because of some slight changes to the proposal (from the original, which uses many more libraries), I have not included these tests. They can, however, be shown or even adapted to this proposal.
The text was updated successfully, but these errors were encountered: