Hacker News new | ask | show | jobs
by epolanski 261 days ago
I think the solution is to not have side effects in pure functions really.

At some point you're composing your pure functions and _have_ to call them by some effectful function (otherwise they're never executed or you're doing computations that aren't consumed by anything).

The only sane alternative is to have a debug effectful variant where you turn off these checks. But then why would `stdout` debugging fine, and not say writing to a different stream or file?