From: Yehuda Katz Date: 2008-12-03T14:01:37+09:00 Subject: [ruby-core:20243] Re: Does this count as a bug in #parameters? ------=_Part_87052_13326823.1228280837697 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would say so! The problem is that the current parameters() tries to supply immediate (I believe) defaults. I don't personally find this useful, but would have found a more expansive version that included strings to be useful. In light of this problem, I say take out the very very simple defaults. -- Yehuda 2008/12/2 Dave Thomas > irb(main):023:0> ->(c=1+2) {}.parameters > => [[:opt, :c, 1]] > > > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 ------=_Part_87052_13326823.1228280837697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would say so!

The problem is that the current parameters() tries to supply immediate (I believe) defaults. I don't personally find this useful, but would have found a more expansive version that included strings to be useful.

In light of this problem, I say take out the very very simple defaults.

-- Yehuda

2008/12/2 Dave Thomas <dave@pragprog.com>
irb(main):023:0> ->(c=1+2) {}.parameters
=> [[:opt, :c, 1]]






--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
------=_Part_87052_13326823.1228280837697--