From: "Hal E. Fulton" Date: 2003-02-19T06:08:12+09:00 Subject: Re: How to test for existence of instance variable? ----- Original Message ----- From: "Paul Brannan" To: "ruby-talk ML" Sent: Tuesday, February 18, 2003 2:19 PM Subject: Re: How to test for existence of instance variable? > On Wed, Feb 19, 2003 at 02:08:07AM +0900, Yukihiro Matsumoto wrote: > > In message "Re: How to test for existence of instance variable?" > > on 03/02/19, Paul Brannan writes: > > |Why should this be fixed? The warning looks reasonable to me. > > > > Because it's non intuitive. There's no logical relationship between > > an attribute reader "foo" and an instance variable "@foo" to the > > users. > > Creating an attribute reader and not initializing the attribute (either > with @foo= or with self.foo=) is a bug. The user should never see this > warning except for buggy code. What Paul says makes sense to me. Hal