in reply to Use method/function signatures with Perl
Ruby gets along fine with duck typing. I'm really not concerned there, and I'm not sure perl should be either. I guess the thing is when something is method-oriented, you'll run across the equivalent runtime error a bit sooner, as with Perl you have a good chance of only getting something like "not a HASH at (xxxxxx)".
The advantage of duck typing is that if you suddenly decide that your FrogBucket needs to accept Weasels, all you need to do is make your Weasels know how to quack().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use method/function signatures with Perl
by Ovid (Cardinal) on Dec 08, 2004 at 01:07 UTC |