3 ms·
> IO isn’t (typically) functional, and neither is the IO monad "(pure) functional" is an attribute of expressions, not of concepts. Hence saying "the IO monad
by valenterry 6y ago
> IO isn’t (typically) functional, and neither is the IO monad
"(pure) functional" is an attribute of expressions, not of concepts. Hence saying "the IO monad is not functional" does not make much sense.
a function that returns an `IO` type, which when executed performs a side-effect, is indeed pure functional though. Hence, react hooks are not pure functional, by the common definition of functional programming.