Comment

Comment by alexandercrohde

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton