DEV Community

loading...

Discussion on: Dependency injection and Reader Monad

Collapse
restuta profile image
Anton Vynogradenko

Yeah, that makes sense! Do yo have an idea how would that work with multiple dependencies that are needed for different objects at different levels in the object graph?

Usually, when, for example, writing tests, it’s required to “set up” multiple objects like that.

Thread Thread
napicella profile image
Nicola Apicella Author

Hi! I might have some, could you write up a short example to clarify?