From: Gregory Brown Date: 2009-05-29T22:35:13+09:00 Subject: [ruby-core:23624] Re: Defining #name= at the class level On Fri, May 29, 2009 at 3:12 AM, Yukihiro Matsumoto wrote: > � �In my opinion, the behavior of attr_accessor should be change to > � �either a) raise exception or cause error for overriding superclass > � �method b) or remain silent without overriding attr access method. If you changed it to raise exception when a method is overridden on the superclass, would you also change it to do the same when it happens on the current class? If so, maybe this options would help programmers find accidental bugs. I think that if an error is not used, the behavior should be changed not to be silent but to display a warning. Although I don't mind that this replaces the responsibility in the developer's hands, it might be nice to have some help spotting problems. What do you think? -greg