
1 Aug
2007
1 Aug
'07
4:27 p.m.
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, fb@frank-buss.de http://www.frank-buss.de, http://www.it4-systems.de