asa reviews

cpanratings
 

RSS | Module Info | Add a review of asa

asa (0.02)

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.