Version française
Home     About     Download     Resources     Contact us    
Browse thread
"do notation" in ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Carette <carette@m...>
Subject: "do notation" in ocaml
Has anyone done a set of camlp4 macros for "do" notation in ocaml?  I am
experimenting with some (non-state) monadic code in ocaml, and writing all
of it in "long form" is really quite tiresome!

I don't even need 'return', just syntactic sugar for >>= would be
sufficient.

Thanks,
Jacques

PS: of course, if there are other, better ways to do this, I welcome any and
all pointers.