We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Decorators Review

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.