3 ms·
That's just Haskell's crazy evaluation semantics though, not something that applies to monads in general.
by lmm 9y ago
That's just Haskell's crazy evaluation semantics though, not something that applies to monads in general.
- tome 9y agoIndeed. But bad_user made a claim about monads in general ("What a Monad does is to force sequencing by creating a data dependency.") so all I need to do to refute it is give an example of a particular monad where the claim doesn't hold.
- lmm 9y agoMonads force a denotation of sequencing. Of course you can write a language implementation where the sequencing of operation does not represent the sequencing of denotation (just as you can write a "compiler" that compiles all programs to Hello World), but, well, that's on you.
- tome 9y ago> Monads force a denotation of sequencing Aha! Now we're on to something.