by mathgladiator · 14y ago · 0 comments
Personally, I think exceptions were a mistake for errors. I prefer how you do error codes via ocaml.
let val = func ... in match val with Result(v) -> do nice thing | Error(500) -> retry | Error(503) -> retry | Error(_) -> abort
No comments yet.