Class-Lite
view release on metacpan or search on metacpan
lib/Class/Lite.pm view on Meta::CPAN
=back
The hashref-based base class that does no more than it must. Your
constructor and accessors are defined in a bridge package so you can
override them easily.
=head1 Why?
Computer programmers are clever people who delight in evading restrictions.
Create an L<< inside-out|Class::Std >> (flyweight) class to enforce
encapsulation and another fellow will L<< hack in|PadWalker >>. The only
way to win the ancient game of locksmith and lockpick is never to begin.
If someone misuses your class then it's not your responsibility.
Hashref-based objects are traditional, well-understood, even expected in
the Perl world; tools exist with which to work with them.
Similarly, C<< Class::Lite >> provides no read-only accessors. If your client
developer wants to alter an attribute he will; you may as well provide a
method for the purpose. You might warn against the practice by overriding
the default method:
( run in 1.166 second using v1.01-cache-2.11-cpan-05444aca049 )