From: Mark Hahn Date: 2001-10-27T09:33:21+09:00 Subject: [ruby-talk:23572] Re: Fast reply needed: class var trouble I don't know about variable declaration as the solution, but this is definitely a real problem in Ruby right now. Is there anything in Ruby Garden that solves this ambiguity? -----Original Message----- From: Ralph Mason [mailto:ralph.mason@telogis.com] Sent: Friday, October 26, 2001 3:47 PM To: ruby-talk ML Subject: [ruby-talk:23561] Re: Fast reply needed: class var trouble I would rather have the option to require declaration of all variables. It stops these problems right away. And if it's an option you like in vb you dont have to use ( although I always do) ----- Original Message ----- From: "Robert Feldt" To: "ruby-talk ML" Sent: Saturday, October 27, 2001 11:31 AM Subject: [ruby-talk:23558] Re: Fast reply needed: class var trouble > On Sat, 27 Oct 2001, Rich Kilmer wrote: > > > to remove the ambiguity of Ruby trying to figure out whether I am > > trying to define a local var or invoke a method. > > > Yes, of course. So classic! Ok, I'm off to bed... > > The Real PoRLS (Principle of Roberts Least Surpris) here would be for Ruby > to conclude that it cant be a local since it would be useless to declare a > local when value never used. Something for rite matz? ;-) > > Thanks, > > /Robert > >