Open mlms13 opened 1 year ago
Currently, fallback is let fallback: (decoder, fallbackValue) => decoder. If we switched the two arguments, it would make piping more intuitive, e.g.:
let fallback: (decoder, fallbackValue) => decoder
let roles = field("roles", list(Role.decode)) |> fallback([])
Currently, fallback is
let fallback: (decoder, fallbackValue) => decoder
. If we switched the two arguments, it would make piping more intuitive, e.g.: