Comment by xmorse

Comment by xmorse 20 hours ago

1 reply

This is a good time to implement "context", a way to pass down the call stack parameters instead of having to add a io argument to every function

sbszllr 20 hours ago

I don't know if it's still true in the recent versions of Scala (stopped caring in 2018) but it used to have implicit parameters designed specifically for passing context like this.

A notable example was passing around an implicit ExecutionContext for thread pools, e.g. in Akka :)