3 ms·
More bafflement: is this refering to the programming decorator pattern or something else? I.e. the one everyone learns about when they learn patterns for the fi
by pipes 1y ago
More bafflement: is this refering to the programming decorator pattern or something else? I.e. the one everyone learns about when they learn patterns for the first time??
No idea why they would be related to closures
- maleldil 1y agoThis is about Python decorators: https://docs.python.org/3/glossary.html#term-decorator https://docs.python.org/3/glossary.html#term-decorator. In summary, they are functions that return functions, which allow you to wrap their behaviour (e.g. add a cache, transform a function into an HTTP API handler, etc.) As far as I can tell, they're not related to the design pattern, but I never had to use that.