ocamllabs / ocaml-effects

*DEPRECATED: See ocaml-multicore/ocaml-multicore* OCaml effects handlers
Other
27 stars 4 forks source link

Switch to tuple syntax for matching effects #15

Open lpw25 opened 8 years ago

lpw25 commented 8 years ago

This patch switches to a tuple-style syntax for matching effects. Replacing:

match ... with
| effect A k ->
| effect (B x) k ->
| effect (C(x, y)) k ->

with:

match ... with
| effect A, k -> ...
| effect B x, k -> ...
| effect C(x, y), k -> ...

which I think is slightly nicer.