3 ms·
> Think of monads as a way to overload a semicolon. It might sound a little crazy at first, but imagine being able to override the semicolon to reduce boilerpla
by diegoperini 7y ago
> Think of monads as a way to overload a semicolon. It might sound a little crazy at first, but imagine being able to override the semicolon to reduce boilerplate in specific code blocks. That's basically how monads are used in practice.
Lol, this resonated well. It is both brilliant but also extremely confusing (talking with experience). In my previous company, when we collaborated while researching Monads, we ended up in this conclusion as well. Some even argued that Monads actually override the indentation before an expression to turn it into a statement which doesn't help at all either.