Definitely agree on the monad transformers.  Haskell code can be very
succinct, but it requires a particular perspective.  I'm working
towards a monad tutorial for Clojure using the intro I put in my
monads implementation as a starting point.  I've got quite a bit of
work before I get to that point, though.

Jim

On Dec 22, 1:51 am, Konrad Hinsen <[email protected]> wrote:

> I also think that some aspects of monads are clearer in Clojure than  
> they are in Haskell. Haskell's way to implement monads as data types  
> has some practical advantages, but it also obscures the algorithmic  
> nature of monads a bit. Moreover, it makes some things impossible,  
> for example executing a single piece of code under different monads  
> (easy in Clojure by having the monad as a variable), which is quite  
> handy sometimes, e.g. for debugging. I also prefer monad transformers  
> implemented as functions to monad transformers implemented as pretty  
> complicated abstract data types with boilerplate code to get data in  
> and out. In the long run, we should have a monad tutorial for  
> Clojure, rather then let everyone learn Haskell first.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to