3 ms·
More function calls can also clutter the function, rendering the intent harder to understand. The advantage of the decorator syntax is that it stays out of the
by icebraining 11y ago
More function calls can also clutter the function, rendering the intent harder to understand. The advantage of the decorator syntax is that it stays out of the main logic of the function, which is useful for "side" concerns (like logging, but also authorization, contracts, etc).