Décorateurs
Décorateurs, in programming, are a syntactic sugar feature that allows for modifying or enhancing functions or methods in a clear and readable way. They are inspired by the decorator pattern in software design. A decorator is essentially a callable that takes another callable as input and returns a new callable, often by wrapping the original. This wrapping allows for the addition of new functionality before or after the execution of the original callable, or even to replace it entirely.
The primary benefit of using decorators is to reduce code duplication and improve code organization. Common
In languages like Python, decorators are implemented using the `@decorator_name` syntax placed directly above the function