> How does all this map to C++? A monad is a a class, with no useful 
> interface for the end user, that looks roughly (i.e. I haven't tested 
> it) like:

trying to implement it in other languages is a good idea for understanding
monads. I've tried this with the Maybe monad in Lisp:

http://groups.google.com/group/comp.lang.lisp/msg/3bd8ecfb6cfd6601

There are other tries in Scheme and Lisp, even a general Arrows approach
IIRC.

-- 
Frank Buss, [EMAIL PROTECTED]
http://www.frank-buss.de, http://www.it4-systems.de

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to