This mechanism is useful for separating concerns and avoidingexternal unrelated logic ‘polluting’ the core logic of the functionor method. A good example of a piece of functionality that is better handledwith decoration is or caching: you want to store the results of anexpensive function in a table and use them directly instead of recomputingthem when they have already been computed. This is clearly not partof the function logic.