dbuenzli / bos

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

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

Open MisterDA opened 2 years ago

MisterDA commented 2 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