stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

attribute mop api for 'default' isn't great #115

Closed doy closed 11 years ago

doy commented 11 years ago

Right now, we have to do mop::attribute->new(name => '$!foo', default => \sub { 1 }). It'd be pretty nice if we could remove the need to wrap it in a sub when it's not necessary (a constant or whatever): mop::attribute->new(name => '$!foo', default => 1).