August 2018
Intermediate to advanced
332 pages
9h 12m
English
Sometimes, side-effects on decorators are necessary, and we should not delay their execution until the very last possible time, because that's part of the mechanism which is required for them to work.
One common scenario for when we don't want to delay the side-effect of decorators is when we need to register objects to a public registry that will be available in the module.
For instance, going back to our previous event system example, we now want to only make some events available in the module, but not all of them. In the hierarchy of events, we might want to have some intermediate classes that are not actual events we want to process on the system, but some of their derivative classes instead.