4 ms·
That's a good point. I was mistaken by saying that, but if Javascript is anything to go by, when people have IO but not continuations, they'll just program in C
by DanWaterworth 13y ago
That's a good point. I was mistaken by saying that, but if Javascript is anything to go by, when people have IO but not continuations, they'll just program in CPS. As I said, once you have continuations, you can create everything else.
> the effectful view of Monads is only one way to see them
Absolutely, but what's interesting is that it is as general as any other view of monads.
- Peaker 13y agoWhat I was trying to say is that monadic combinators are super-useful in Haskell as they are in Javascript. They're hard to implement in Javascript though, because of return type polymorphism or explicit dictionary passing being required. So people don't implement them -- not because Monads aren't useful there, but because Monads are hard to implement there.