Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: