From: Robert Klemme Date: 2008-03-27T21:09:27+09:00 Subject: Re: Over Loading 2008/3/27, Selvaraj Subbaian : > Question looks like simple Why ruby is not supporting over loading?? You would have to ask Matz for details. Here are some potential reasons: - Ruby is dynamically typed which makes overloading based on argument types impossible; you could only overload on argument list structure (mostly number of args) - argument list structure based overloading is seldom useful and in those cases the implementer can do it himself - no need to burden the language with this. - because of Ruby's dynamic nature methods that are overloaded based on argument type in other languages often fall into one and need not be overloaded. > I think we can pass any number of argument as an array to method. is > this the reason or any other ??? This might be part of the reason (see above). Kind regards robert -- use.inject do |as, often| as.you_can - without end