4 ms·
> To be honest, decorators were always, idk, I felt like there was something off about them. I think they're one of those things you don't need to use unless y
by UncleEntity 9y ago
> To be honest, decorators were always, idk, I felt like there was something off about them.
I think they're one of those things you don't need to use unless you need to use them...though, honestly, you probably don't ever need to use them unlike metaclasses where sometimes they are the only way to do something in a reasonable manner.
- anowlcalledjosh 9y ago> you probably don't ever need to use them By their definition, you don't ever need to use them. They're just a convenient syntactic sugar. @foo def bar(): ... is, as far as I know, exactly equivalent to def bar(): ... bar = foo(bar)