dbuenzli / bos

Basic OS interaction for OCaml
http://erratique.ch/software/bos
ISC License
65 stars 16 forks source link

Use exception patterns in pattern matching instead of match try #91

Open MisterDA opened 3 years ago

MisterDA commented 3 years ago

They're nicer and also tail-recursive.

https://ocaml.org/manual/coreexamples.html#s%3Aexceptions https://ocaml.org/manual/patterns.html#sss:exception-match