Skip to content

Flip andThen parameters for better currying [breaking change] #11

@MazeChaZer

Description

@MazeChaZer

Right now, the signature of andThen is

andThen(decoder, fn)

Changing the order of the parameters to

andThen(fn, decoder)

would adhere to the idea that you first pass configuration into the function, and later the data the function operates on.

Elm also did this change in 0.18: https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.18.md#backticks-and-andthen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions