News for hackers. Stuff that matters.
Re:Why GitHub used Haskell for Semantic by chii on Thursday June 06, 2019 @09:43AM (#20114432)
i like to explain monads as the same sort of thinking process as a 'design pattern' in OOP. People who have done OOP would have heard of things like the visitor pattern. In OOP, patterns aren't unified in some class, but could be.

Monads (and type classes in general) are like design patterns in OOP, in that they encode a common use case. Except in haskall, you can encode this pattern into the language semantics.

There are no comments on this comment yet.