Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2005-01-27 (17:56)
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


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