After much tinkering I am announcing a new monads implementation: https://github.com/bwo/monads
Rather than using protocols or symbol macros as (I believe) all hitherto existing monad libraries for Clojure have, this implementation has the elements of a monadic computation build up a structure which the individual monads interpret, with the goal of allowing for flexibility and expressiveness. The wiki has a small benchmark, which also gives an example of using the state monad: https://github.com/bwo/monads/wiki/Tree-numbering-benchmark And an example of using monad transformer stacks, demonstrating the state, writer, maybe, and error monads: https://github.com/bwo/monads/wiki/An-expression-evaluator Feedback welcome! -- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure." [Larousse, "Drink" entry] -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.