From: Rich Kilmer Date: 2001-10-27T13:07:46+09:00 Subject: [ruby-talk:23591] Re: Fast reply needed: class var trouble > -----Original Message----- > From: Ralph Mason [mailto:ralph.mason@telogis.com] > Sent: Friday, October 26, 2001 11:42 PM > To: ruby-talk ML > Subject: [ruby-talk:23589] Re: Fast reply needed: class var trouble > > > "Dave Thomas" > > > > I'm wondering if you're talking from some bad experiences here, or if > > this is an observation based on preferences. The reason I ask is that > > I've been coding Ruby for a fair while now and I've never once felt > > the need to declare variables. As always, I'm interested in other > > opinions. But I suspect that this is a change you're unlikely to see, > > as it would change the character of the language dramatically. > > I'm not so sure that it would change the language much at all > > something as simple as > > var a,b,c,d #define some local variables > Please...not "var"... I would rather just learn that in the context of a method if you need to call a method within your object that ends with "=" you prefix the call with self. The rarity that this has arisen for me (with ~10k lines of Ruby so far w/heavy class definition, etc) seems not to warrant a change in language.