Skip to content

Order of fallback arguments should be switched #138

@mlms13

Description

@mlms13

Currently, fallback is let fallback: (decoder, fallbackValue) => decoder. If we switched the two arguments, it would make piping more intuitive, e.g.:

let roles = field("roles", list(Role.decode)) |> fallback([])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions