Skip to content

Either -> Result #22

@janekx21

Description

@janekx21

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 the Right r constructor. The proper name should be Result = Ok value | Err error. This is not symmetrical and easier to read.

Elm Reference: https://package.elm-lang.org/packages/elm/core/latest/Result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions