

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Decorators
incomplete
2: Args and Kwargs
incomplete
3: Args and Kwargs Practice
incomplete
4: Decorators
incomplete
5: Decorators Review
incomplete
6: LRU Cache
incomplete
7: Decorators Practice
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Again, Python decorators are just syntactic sugar (i.e., "a more convenient syntax") for higher-order functions.
Not all programming languages have built-in decorators, but most do support higher-order functions and closures. Some of the famous functional languages like:
do not have special syntax decorators, but they have higher-order functions and closures, meaning the decorator pattern can still be used. So if you understand these concepts, they'll serve you well in many different languages.