On 21.11.2008, at 17:10, Chouser wrote: > On Fri, Nov 21, 2008 at 6:14 AM, Konrad Hinsen > <[EMAIL PROTECTED]> wrote: >> >> As a first non-trivial exercice, I wrote an implementation of monads >> in Clojure. I just uploaded it to the Group: >> >> http://clojure.googlegroups.com/web/monads.clj > > This is pretty code. Did you just implement symbol-macro-let? > Very nice.
Thanks! I don't know what symbol-macrolet is/does, so I can't comment on that. It's probably some Common Lisp thing, right? > I noticed that you have a private function (monad-expr) used by a > macro, and was about to comment that that doesn't work -- but your > function is used by the macro, not the *expansion* of the macro, so it > should work just fine. I'll have to keep that in mind. Yes, it is used only at expansion time. > (zero? n) is an idiom for (= 0 n) Good to know! Konrad. --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---