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).
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)
.