Remix.run Logo
▲ maleldil 2 years ago

This is about Python decorators: 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.

▲F-W-M 2 years ago | parent | next [-]

They implement the design pattern.

▲pipes 2 years ago | parent [-]

It sounds like they do it in a functional style rather than the object orientated one I see a lot.

▲pipes 2 years ago | parent | prev [-]

Thanks