You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deriving arguments are always extracted as options, or bool: see the two function creating arguments: arg and flag.
It could be nice to add a function to have an argument with a default value, to avoid handling the default case in the main function, as in let arg = match arg with Some v -> v | None -> default_value in (reported by @sim642, see ocaml-ppx/ppx_deriving#263 (comment)).
Deriving arguments are always extracted as options, or bool: see the two function creating arguments:
arg
andflag
.It could be nice to add a function to have an argument with a default value, to avoid handling the default case in the main function, as in
let arg = match arg with Some v -> v | None -> default_value in
(reported by @sim642, see ocaml-ppx/ppx_deriving#263 (comment)).The added function would be:
The text was updated successfully, but these errors were encountered: