What do you need a DI library for?
What's the problem with constructor injection of the dependencies using traits?
What's the problem with constructor injection of the dependencies using traits?
Accessing something that might update it's internal cache needs to be mutable so i) this need for mutability is viral up the call chain ii) we can't share mutable references... so it's going to be a pain in the butt and need to sidestep compile guarantees somehow. Having an out of the box best solution for common scenarios like this would be nice to see at least.