in reply to Re^2: RFC: Simulating Python's @decorators in Perl with Attributes
in thread RFC: Simulating Python's @decorators in Perl with Attributes
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: RFC: Simulating Python's @decorators in Perl with Attributes
by LanX (Saint) on May 28, 2013 at 20:20 UTC |