From: Daniel DeLorme Date: 2007-01-19T11:06:58+09:00 Subject: Re: auto assign arguments? Gregory Brown wrote: > On 1/18/07, David Chelimsky wrote: > >> Does this seem like a good thing to propose? > > -1. I see @a and @b to be part of the classe's instance variables, so Why the class' instance variables? That doesn't fit with the current pattern: class C def initialize(v = nil) @default = v end def otherdefault 42 end def ultimate(v = @default || otherdefault) v end end C.new.ultimate #=> 42 C.new(54).ultimate #=> 54 If an object's instance variables (and even methods) can be used as default values, it would be coherent to also allow them in the argument list. This feels 100% instinctive to me. +1 -dd