From: Alan Chen Date: 2002-09-27T01:12:24+09:00 Subject: Re: adding overload to ruby On Thu, Sep 26, 2002 at 11:24:39PM +0900, Bulat Ziganshin wrote: > that's because of dynamic typing. even when you write "2+2" you don't > know whether answer will be 4 or 5 :) But that could happen just as easily in C++ in a strongly typed environment. When you start to add all the C++ template based instantiation it's no less uncertain, but now you've gone through 10x as much work to get back some element of dyamic behavior of Ruby. > declaring argument types can be on the way to effectively compiling > ruby; i think that prototyping w/o strict typing and writing real > program with strict typing will be "right way" :) I think its possible, but for me, the cost you pay in extra work just isn't worth the feature. One of the nicest aspects of Ruby is that you spend effort focus on the direct bugs, not on "type wrangling" that takes away from the actual functionality vs. structural syntax issues. - alan -- Alan Chen Digikata LLC http://digikata.com