20 minutes



Event (eg: REST request) processing chain often defines entities which became constant in subsequent code. For example: authorized user.
Other can be derived from other entities.

Number of such entities rises along with application complexity leading into objects/functions with lot of properties/arguments.
Context::Singleton provides a way how to cope with that easier.

Context::Singleton provides little bit different dependency injection:
- with logical programming flavour
- context aware
- immutable (as far as perl supports that)
- lazy