40 ms·
Meh. CPS may be "simpler" than using a monad transformer, but it's less specific and therefore IMO harder to reason about. If the complexity of the monad transf
by lmm 3y ago
Meh. CPS may be "simpler" than using a monad transformer, but it's less specific and therefore IMO harder to reason about. If the complexity of the monad transformer type bothers you you can wrap it in an alias. I can't watch videos so I don't know what their complaint about concurrency is or whether using CPS helps with it.
If you really want to use CPS, I'd rather do it by using the continuation monad and using standard do notation than by carefully indenting my code in a nonstandard way.