3 ms·
Like I said, operational interpretations are valid, but they don't help explain why monads are useful, because if you only want the operational interpretation t
by lmm 8y ago
Like I said, operational interpretations are valid, but they don't help explain why monads are useful, because if you only want the operational interpretation then why not build the operational functionality directly into the host language (particularly since most host languages already offer that kind of thing)? E.g. the operational version of Maybe/Option just seems like an overcomplicated version of exceptions - if all you want is a "fail" effect, why not just have it throw an exception and avoid all the extra monadic plumbing.
(I believe there are good reasons you would want to use monads, but only from a denotational perspective, not an operational one)