From: Roseanne Zhang Date: 2007-04-18T03:53:21+09:00 Subject: Re: how to have a default argument Kyle Schmitt wrote: > Ohh. So this is technically not argument number type overloading. > Dohh. > > > ie: def foo(bar) > def foo(bar,manchu) > def foo(bar,manchu,biebelch) > > Which you can't do in straight ruby. Or can you? > > --Kyle You are right! [quote]Finally, I am not against "method overloading", but it very easily leads to optional static typing in the language, which changes the language very drastically, since you need to specify "type" to overload arguments. Without well-thought design, it can "destroy" the language and its culture. I have not yet got that well-thought design of method overloading. --Matz[/quote] http://beust.com/weblog/archives/000042.html -- Posted via http://www.ruby-forum.com/.