-
Notifications
You must be signed in to change notification settings - Fork 0
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 -> Result #22
Comments
To some degree you are right. But they are two different things when it comes to semantics.
Speaking of hope this helps a little bit, with the understanding, why we only have |
@janekx21 We discussed this topic and considering a rewrite of the |
The whole package will most likely be obsolete with the next dotnet LTS version, because actual discriminated unions, including built in Option and Result types, will be added. |
Is it already in the next LTS? You have a link? Only saw the proposal. But yes. It’s a good thing that this is obsolete soon. |
correction: "maybe obsolete with the next dotnet LTS" |
Either is the wrong name for this monad, because
Either = Left l | Right r
sound symmetrical. But Either is not symmetrical, because its mapping and bind only works on theRight r
constructor. The proper name should beResult = Ok value | Err error
. This is not symmetrical and easier to read.Elm Reference: https://package.elm-lang.org/packages/elm/core/latest/Result
The text was updated successfully, but these errors were encountered: