4 ms·
> Strictly no side effects* to help you write functional code > *With the exception of IO That's one hell of a footnote.
by consilient 3y ago
> Strictly no side effects* to help you write functional code
> *With the exception of IO
That's one hell of a footnote.
- actionfromafar 3y agoBut how else would you do IO?
- Noe2097 3y agoBy having IO functions taking an argument representing the global IO environment/state and returning it. That way IO functions can remain pure.
- actionfromafar 3y agoNext you are going to tell me about endofunctors I guess.