News for hackers. Stuff that matters.
Re:What I Wish I Knew When Learning Haskell by runT1ME on Sunday December 08, 2013 @08:07PM (#6872349)
>But monads apply functions that also return a wrapped value.

Yes, but they also must follow the monad laws.

>It should be easy to see why people think the jQuery chain pattern is indeed monadic.

It is not easy for me to see. In any of your examples are you returning the same encapsulated structure in your lambda you pass in? It doesn't look like it.

>For what it's worth, I'm far from alone in asserting that jQuery is indeed a monad.

Yes, a lot of people have a misunderstanding of monads.

>Since Haskell people claim to be the only enablers of "true monads",

I'm not a Haskell person. I write monadic code in both Scala and C# to great effect.

There are no comments on this comment yet.