logoalt Hacker News

epolanski • yesterday at 11:12 PM • 2 replies • view on HN

The thing that makes monads difficult is laziness and the anti math circle jerk.

You start from a functor which is a data type that admits a map operation.

Then you add of, or pure, to make an applicative functor, and then you add flatmap to make a monad.


Replies

windward • today at 12:14 AM

It's odd, the stereotype of software developers is a know-it-all attitude, but start talking about types and you get excuses that boil down to 'I'm incapable of learning to understand the thing you learned to understand'.

LoganDark • yesterday at 11:15 PM

> The thing that makes monads difficult is laziness and the anti math circle jerk.

That's quite a hateful way to describe lack of knowledge.

There are some prerequisites that make it easier to understand monads, and a lot of programmers don't even know those. That can make learning monads difficult right off the bat.

➕ show 2 replies