On Saturday, 30 September 2023 at 12:40:29 UTC, Guillaume Piolat wrote:
On Friday, 29 September 2023 at 16:56:47 UTC, Imperatorn wrote:

Sounds a bit like dependency injection but for state

Possibly, I'm not familiar with dependency injection.
When is it useful?

When you want to register a bunch of objects and then just use it from various places, you just state in your ctor that you want to use it and it will be provided by the framework.

Reply via email to