From: Mathieu Bouchard Date: 2001-10-30T15:37:17+09:00 Subject: [ruby-talk:23811] Re: RCR: Fun with attribute shortcuts solves RCR #3 and more On Tue, 30 Oct 2001, Gunnar Andersson wrote: > > def initialize(name, type, txt) > > @name, @type, @txt = name, type, txt > > end > Yeah, it's a classic, RCR #3. We all hate repetition and typing > stuff that is obvious, right? Not as much as blatant inconsistency. > What would it mean for example, if you created another > function in the same way, like def func(@instance_var) - it would mean the same as it does for proc{|@instance_var|} right now. > If not, why should there be a special case for initialize? there shouldn't be. ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju