| CPAN Ratings (Gamma) asa reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of asa
3 out of 8 found this review helpful:
For the record that is not duck typing.
Duck typing is:
if ( $object->can("quack") ) {
warn "$object looks sufficiently like a duck";
}
That is to say, the actual type, the isa, does, interface restrictions etc are all phased out, and it's purely an interface level thing.
asa helps you write drop in replacements that would work if the code they were to drop into only checked for duck typing. When you want to do that you can use 'asa' to pretend that you 'isa' something that you only quack like.
יובל קוג'מן - 2006-07-13 10:44:05
Was this review helpful to you?
Yes
No
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|