In message "[ruby-talk:9257] Re: polymorphism"
on 01/01/14, Josh Stern <jstern / foshay.citilink.com> writes:
|>I'd like to avoid the pitfall C++ suffered. Any good idea?
|
|Which pitfall?
"overloading based on the number of arguments".
The original poster (Maurice) mentioned only about number of arguments.
In addition, although "overloading based on the type of arguments"
itself is not a bad style in general (see CLOS and Dylan), that in C++
almost always causes trouble. Am I overestimating?
matz.