← Back to context

Comment by ChadNauseam

3 months ago

Could you elaborate on your problem with monads?

I don't understand them. None of the introductory materials I've read on them ever made any sense to me. I kinda sorta understand "state" and "maybe" but the general idea that links these two things together and (I am given to understand) leads to other cool stuff just eludes me.

  • Easiest way to understand is to write code using them IMO. (Writing a parser for some language with a parser-combinator library is a good place to start.) Otherwise it's like trying to understand how to play a board game by reading the rulebook. It's easier to just try playing the game