English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.