matz / zetabits.com (Yukihiro Matsumoto) writes: > Hi, > > In message "[ruby-talk:11652] RE: RCR: shortcut for instance variable initialization" > on 01/02/27, Michael Davis <mdavis / sevainc.com> writes: > > |From: Dave Thomas [SMTP:Dave / PragmaticProgrammer.com] > | def initialize(@name, @type, @txt) > | end > > |I like it! > > I don't. I feel it makes the meaning of method arguments ambiguous. > (plus it's ugly.) But it's ok to discuss, since I am easy to change > my mind, you know. But [1, 2, 3].each {|$i| } p $i #=> 3 [1, 2, 3].each {|@i| } p @i #=> 3 Here the formal arguments to a block affect non-locals. It seemed analogous. But, I agree it ain't pretty. It's just that those parallel assignments are also a pain. Perhaps there's another way. Regards Dave