in reply to Re: RFC: Simulating Python's @decorators in Perl with Attributes
in thread RFC: Simulating Python's @decorators in Perl with Attributes

"Moo exposes C::M::M directly while Moose reimplements it (unless I'm mistaken?)."

You've got it the wrong way around: Class::Method::Modifiers is the re-implementation; Moose came before it.

Class::Trigger and Aspect are a fairly similar idea, though different interfaces.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re^2: RFC: Simulating Python's @decorators in Perl with Attributes