Re: RFC 97 (v1) prototype-based method overloading
[email protected] (Nick Ing-Simmons) Thu, 17 Aug 2000 20:06:20 +0000
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <E13PVvg-0006qA-00@roam1> |
Peter Buckingham <[email protected]> writes: > >There are a couple of reasons for overloading. simple arithmetic operations, you >can use plus(int, int), plus(float, float). another approach is to use >genericity like in eiffel, and the templates in C++, which is probably better in >the sense that you only have one function ie plus(<type>, <type>). And of course perl has plus(<type>,<type>) as its default ;-) If that is "better" why are we suggesting we change it ? -- Nick Ing-Simmons