| CPAN Ratings (Gamma) Attribute-Types reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of Attribute-Types
From some very limited experiments, this is a very simple and effective way to control the types and values of variables in Perl.
This is a good way to enforce types or to catch errors in debugging. Though I'm unsure about using it in production code, especially since attributes are (were?) a moving target and subject to change.
A *major downside* is that assignment to variables is seriously slowed down, due to the fact that they become tied to a function that restricts their type. So don't use it for any time-sensitive code.
And of course it seems to increase a variable's size.
Robert Rothenberg - 2004-06-01 08:37:34
Was this review helpful to you?
Yes
No
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|