Hacker News new | ask | show | jobs
by itishappy 60 days ago
Console is the very core of what I expect an effect system to need to reimplement.

Console is IO and IO is the effect.

1 comments

just use a dependency injected logger then...
Not playing devil's advocate or anything, but effect systems go beyond DI: it's not just about passing around a capability, but managing its lifecycle in a referentially transparent manner, i.e. monads all the way down. It's a real pain, but they set themselves up to bear the burden, so, good for the rest of us I guess?