go ahead... be a heretic | |
PerlMonks |
Re^3: RFC: Simulating Python's @decorators in Perl with Attributesby pokki (Monk) |
on May 28, 2013 at 19:54 UTC ( [id://1035711]=note: print w/replies, xml ) | Need Help?? |
All those other uses for attributes are useful and interesting, but I thought we were talking about method decoration? Decorators as code rather than syntax also allow you to decorate someone else's methods, or to compose some advice into some class through roles, even at runtime. This is not possible with attributes.
In Section
Meditations
|
|