Subject: | Consider "default-reader" configuration |
Sometimes it's the case that all (or at least most) of the `has` slots specify a `:reader` attribute. This is especially true in classes that are mostly "dumb store of data".
It might be nice to have a configuration option to default those on:
use Object::Pad qw( :default-reader );
class Point3D {
has $x;
has $y;
has $z;
...
}
Which would then provide the ->x, ->y and ->z accessor methods without them needing to be listed individually.
--
Paul Evans