Hi experts,
Here is what I consider an ambiguity:
# Ruby-1.6.2, Ruby-1.6.3
Proc.new{ |x| }.arity #-> -1
Proc.new{|*x| }.arity #-> -1
From the principle of least surprise I would expect that Proc.new{ |x| }.arity
returns +1 because it has one required argument and no optional arguments.
Am I missing something??
Thanks,
-- Leo --