Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alexandercrohde
· 6y ago · 0 comments
Yes there is. What you do is have don't put any IO calls inside your pure functions, but rather pass in their results as parameters.
Keep the impure code and the pure code separated.
Comments
[–]
pjmlp
6y ago
Beautifully said, practically impossible unless the language imposes it as programming model and you have 100% control over the complete source code.