Earlier quoted context omitted.
Scala has plenty of monads and they work fine.
Yes, but doesn't it also have the three requirements mentioned by the article: ML-style function foo, something akin to type classes, and polymorphic return types?
Why monads have not taken the Common Lisp world by storm (2008)
41–49 of 49 posts
Re: Why monads have not taken the Common Lisp world by storm (2008)
#42Earlier quoted context omitted.
>Yes, Haskell makes you "recreate" the RWST monad stack that imitates impure languages This is really a point that seems to get lost in most of learning materials on the web. LYAH doesn't even acknowledge transformers. I am pretty new to Haskell but it seems to me that transformer stack decisions are a pretty significant design decision for your application. What has happened to me is almost all the code in my applic…
That's definitely a stage of a Haskell program design. The stack helps to separate out layers of effects, but it can be easy to fix that stack concretely at an early stage and then feel the weight of it later on with overly specialized functions. The solution is usually to use the mtl-style transformer classes which let you write generalized functions which depend upon capabilities of the transformer stack instead of…
Re: Why monads have not taken the Common Lisp world by storm (2008)
#43Earlier quoted context omitted.
>Yes, Haskell makes you "recreate" the RWST monad stack that imitates impure languages This is really a point that seems to get lost in most of learning materials on the web. LYAH doesn't even acknowledge transformers. I am pretty new to Haskell but it seems to me that transformer stack decisions are a pretty significant design decision for your application. What has happened to me is almost all the code in my applic…
That's definitely a stage of a Haskell program design. The stack helps to separate out layers of effects, but it can be easy to fix that stack concretely at an early stage and then feel the weight of it later on with overly specialized functions. The solution is usually to use the mtl-style transformer classes which let you write generalized functions which depend upon capabilities of the transformer stack instead of…
Re: Why monads have not taken the Common Lisp world by storm (2008)
#44Earlier quoted context omitted.
That's definitely a stage of a Haskell program design. The stack helps to separate out layers of effects, but it can be easy to fix that stack concretely at an early stage and then feel the weight of it later on with overly specialized functions. The solution is usually to use the mtl-style transformer classes which let you write generalized functions which depend upon capabilities of the transformer stack instead of…
s/Prolog/Monoid/
Re: Why monads have not taken the Common Lisp world by storm (2008)
#45Earlier quoted context omitted.
Scala has a much more powerful type system than Clojure
100% true, but not as powerful as Haskell's. Not sure you can usefully have inheritance and return type overloading.
Re: Why monads have not taken the Common Lisp world by storm (2008)
#46Earlier quoted context omitted.
This talk by Douglas Crockford is quite informative: http://www.youtube.com/watch?v=dkZFtimgAcM
Cool thanks!
Re: Why monads have not taken the Common Lisp world by storm (2008)
#47I came here to make a joke about the real reason why was that no one understands them... but apparently everyone here does. Off to google monads for idiots...
[1]http://learnyouahaskell.com/functors-applicative-functors-an...
Re: Why monads have not taken the Common Lisp world by storm (2008)
#48Re: Why monads have not taken the Common Lisp world by storm (2008)
#49Earlier quoted context omitted.
I meant the Prolog-like inference where MonadWriter w m implies Monoid w.
I see. That was a bit obscure, though.