3 ms·
> It would be even more "funny" if you'd wrap that `readFile` inside a thunk that gets captured from the environment by the lambda body. Than you'd have a refer
by mrkeen 3y ago
> It would be even more "funny" if you'd wrap that `readFile` inside a thunk that gets captured from the environment by the lambda body. Than you'd have a reference to an effect that is supposed to run only inside the lambda but could be executed by external code. Depending on the effect this can have unexpected up to catastrophic outcomes.
Well... yeah? It looks like readFile (a Task) is sufficiently thunk-like to guess that that's the case.
I program in this still regularly. What bad outcomes should I expect?