DEV Community

Discussion on: IO: to be a Monad or not to be, that's the question!

Collapse
 
raulraja profile image
Raúl Raja Martínez

Compared to Haskell suspend functions would be like lang special syntax support for something like ContT. But suspension can be generalized to other monads. See the Kotlin std lib SequenceBuilder which is unrelated to IO and builds collections lazily. See also this comment for a more in-depth look into what we are doing dev.to/raulraja/comment/13a8h