Yukihiro Matsumoto <matz / zetabits.com> wrote:
>In message "[ruby-talk:9242] polymorphism"
>    on 01/01/13, Maurice Szmurlo <maurice / europia.fr> writes:
>
>|are there plans to include into ruby method selection 
>|by the number of arguments, or in other words polymorphism:
>
>Not really.
>
>I personally do not use the term 'polymorphism' for the concept you
>proposed.  But anyway I think the combination of it and optional
>argument (and variable number argument) increases program ambiguity.
>I'd like to avoid the pitfall C++ suffered.  Any good idea?

Which pitfall?

In my experience, overloading based on the number of arguments
is usually not a good programming style, but overloading 
based on the type of arguments often is.


-= Josh