Comment

Comment by JoshTriplett

> Monads are something you'd probably invent yourself once you know the rest of the language well enough.

Very true. I understood monads far better after I wrote some explicitly state-threaded code (where every function took a state and returned (state, actual_return)), wrote functions equivalent to >>= and return, and then turned the result into a monad.

parent JoshTriplett 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton