From: jstern@... (Josh Stern) Date: 2001-01-14T07:10:04+09:00 Subject: [ruby-talk:9257] Re: polymorphism Yukihiro Matsumoto wrote: >In message "[ruby-talk:9242] polymorphism" > on 01/01/13, Maurice Szmurlo 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