Class-Easy reviews

cpanratings
 

RSS | Module Info | Add a review of Class-Easy

Class-Easy (0.11) ****

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 (permalink)

2 out of 4 found this review helpful. Was this review helpful to you?  Yes No