Are you a Haskeller :–) ?
OCaml’s evaluation strategy is strict, the arguments are evaluated before the function is called, so your expression (failwith "aze")
is evaluated before Option.value
and raises the exception.
Are you a Haskeller :–) ?
OCaml’s evaluation strategy is strict, the arguments are evaluated before the function is called, so your expression (failwith "aze")
is evaluated before Option.value
and raises the exception.