XP is just a number | |
PerlMonks |
Re^2: Use method/function signatures with Perlby Ovid (Cardinal) |
on Dec 08, 2004 at 01:07 UTC ( [id://413069]=note: print w/replies, xml ) | Need Help?? |
Actually, the better parameter checking is merely to enforce traditional multi-method dispatch. You have a great point about Ruby's duck typing. If you don't care about types, just don't use Sub::Signatures 'strict' mode and dispatch will be based on the number of arguments and type will be ignored. Cheers, New address of my CGI Course.
In Section
Meditations
|
|