From: "trans. (T. Onoma)" Date: 2005-01-17T20:34:13+09:00 Subject: Re: Passive Arguments On Sunday 16 January 2005 04:50 pm, Esteban Manchado Vel叩zquez wrote: | Hi, | | On Mon, Jan 17, 2005 at 12:32:08AM +0900, trans. (T. Onoma) wrote: | > Since Ruby doesn't support signature-based method definitions, what good | > does it do to throw errors on the wrong number of arguments? Seems to me, | > this just makes the programmers job more difficult. What if Ruby nil'd | > unspecified parameters and ignored extra parameters. Eg. | > | > def ameth(a,b) | > a.to_i + b.to_i | > end | > | > ameth #=> 0 | > ameth(1) #=> 1 | > ameth(1,2,3) #=> 3 | | 臓Arggh! Please don't. This is the Perl way, and I've had some good | headaches because of this, while refactoring code. Ouch, A Spanish expletive! :) Could you elaborate on the problem arising from refactoring? Thanks.