From: Daniel Berger Date: 2006-11-30T07:10:08+09:00 Subject: Re: `attr_accessor` and predicate/question mark methods. Rob Sanheim wrote: > > This was a bug that was "fixed" in a 1.8.5. In 1.8.5 trying to do > > 'attr_accessor :weird?' raises a NameError. > > > > I had voted that doing 'attr_accessor :weird?' should create a "weird?" > > and "weird=" method, but I was shot down by programmers who were more > > interested in being correct than useful (am I bitter? nah). See > > ruby-core:5796 and following for more information. > Hmm, I just went through the thread on ruby-core, and I didn't see > anyone really shoot you down. There was some debate, but the last > thing Matz said was "I'm not sure", so maybe its still an option? Or > was there a later thread that officially shot it down? The current 1.8.5 behavior shows which direction Matz chose so, yes, I was shot down (implicitly rather than explicitly - another cause for annoyance, actually). There may have been followup in ruby-devel, but I don't follow that list (since it's mostly Japanese). I doubt there's any going back now, but you're certainly free to try. Regards, Dan