Skip Menu |

This queue is for tickets about the Object-Pad CPAN distribution.

Report information
The Basics
Id: 133499
Status: new
Priority: 0/
Queue: Object-Pad

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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