| CPAN Ratings Class-Easy reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of Class-Easy
Bottom line the "has" method supports a default value. I could not find any other lightweight "has" methods that do.
Documentation
- Needs better examples and documentation. For example, why do the tests use BEGIN blocks around has definitions.
- has mymethod => (); looks mush cleaner than has "mymethod";
Interface
- is=>"rw" would be a better default than is=>"ro" (for me anyway)
Ease of use
- Requirment for ExtUtils::MakeMaker >= 6.48 was pain. 6.42 worked fine with a couple of warnings.
Overall
I use as
perl -e '
package Foo;
use base qw{Package::New};
use Class::Easy;
has "hey", is => "rw", default => "cool";
package main;
print Foo->new->hey("Hey"), "\n";
'
Michael R. Davis - 2011-03-04T22:35:15
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|