Re: Monads in Clojure

2008-11-25 Thread Stephen C. Gilardi
On Nov 25, 2008, at 9:06 AM, Konrad Hinsen wrote: > But it would be fairly easy to implement symbol- > macrolet on top of my replace-syms. Would that be something of > interest to the Clojure community? I have no experience with it myself, but I've seen it discussed as something that would be

Re: Monads in Clojure

2008-11-25 Thread Konrad Hinsen
On Nov 21, 2008, at 17:10, Chouser wrote: > This is pretty code. Did you just implement symbol-macro-let? > Very nice. I just saw a reference to symbol-macrolet with a description. My function replace-syms is indeed very similar, the difference being that it takes a map for defining the

Re: Monads in Clojure

2008-11-23 Thread Adam Jones
On Nov 23, 1:15 pm, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > On 21.11.2008, at 20:10, Adam Jones wrote: > > >> The file contains the macro definitions, the definitions of three > >> popular monads (maybe, list, state), and some illustrations of their > >> use. Comments are welcome! > > > Since

Re: Monads in Clojure

2008-11-23 Thread Konrad Hinsen
On 21.11.2008, at 20:10, Adam Jones wrote: >> The file contains the macro definitions, the definitions of three >> popular monads (maybe, list, state), and some illustrations of their >> use. Comments are welcome! > > Since they support mzero and mplus, aren't these equivalent to > Haskell's Mona

Re: Monads in Clojure

2008-11-21 Thread jan
Stuart Sierra writes: > Rich gives out commit permission on clojure-contrib to people who are > interested, but he doesn't dictate what goes in. You have to sign the > Clojure Contributor agreement, which basically says that if the > Clojure license changes at some point, you allow your contribut

Re: Monads in Clojure

2008-11-21 Thread Adam Jones
On Nov 21, 3: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 > > The file contains the macro definitions, the definiti

Re: Monads in Clojure

2008-11-21 Thread Chouser
On Fri, Nov 21, 2008 at 11:40 AM, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > > 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? Probably, though when googling it just now, I seem to have found some third-party implemen

Re: Monads in Clojure

2008-11-21 Thread Konrad Hinsen
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.

Re: Monads in Clojure

2008-11-21 Thread Chouser
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

Re: Monads in Clojure

2008-11-21 Thread Stuart Sierra
On Nov 21, 10:06 am, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > Actually, I have no idea of how clojure-contrib works. Is this a > repository for all kinds of Clojure add-ons? Or stuff selected by > Rich for a specific reason? Rich gives out commit permission on clojure-contrib to people who are

Re: Monads in Clojure

2008-11-21 Thread Konrad Hinsen
On Nov 21, 2008, at 15:01, walterc wrote: > how about clojure-contrib? Actually, I have no idea of how clojure-contrib works. Is this a repository for all kinds of Clojure add-ons? Or stuff selected by Rich for a specific reason? Konrad. --~--~-~--~~~---~--~--

Re: Monads in Clojure

2008-11-21 Thread walterc
how about clojure-contrib? On Nov 21, 7:14 pm, 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 > > The file contains the macro