RSS | Module Info | Add a review of Object-Tiny
Object-Tiny
(1.06)
Object::Tiny is. Tiny that is :-) It only generates read-only accessors, but the interface is *far* cleaner than Class:Accessor:Fast, it's easy to override and is just absolutely yummy.
It's better than Class::Accessor::Fast because:
* perltidy and text editors (and me) loathe the extra curly to use a hashref for object creation as it takes two extra lines and an extra level of indentation. The data has to be copied anyway, so Object::Tiny's constructor is no slower than CAF
* mk_ro_accessors syntax is ugly
* Profiling with NYTProf shows the accessor properly (eg Object::id vs Class::Accessor::Fast::__ANON__[Class/Accessor/Fast.pm:52] )
* All those extra entries in the symbol table from CAF upset me.
adam - 2010-03-18T15:30:15 (permalink)
3 out of 6 found this review helpful.
Was this review helpful to you?
Yes
No
Object-Tiny (1.04)
Ignore my past review.
Jonathan Rockway - 2007-09-04T03:03:57 (permalink)
9 out of 17 found this review helpful.
Was this review helpful to you?
Yes
No

