From: Daniel Berger Date: 2005-09-18T14:40:49+09:00 Subject: Re: proposed attr writer patch --- Mathieu Bouchard wrote: > On Sun, 18 Sep 2005, James Britt wrote: > > > attr_accessor :foo?, :bar! > > And would it not be better to just have people > learn proper Ruby, rather than > > add yet another exception to how Ruby behaves? The current behavior is broken. So, it should either do something useful or raise an error. I vote the former, though I would accept the latter. > It can be said that Ruby has so many exceptions that > just another > one won't noticeably increase the number of them. > > It can also be said that Ruby has so many > exceptions, far too > many of them, that it's important to stop the > invasion of more exceptions. Again, I consider this a bug fix, not an exception, since the current behavior creates syntactically invalid methods. So, we can make it work as things stand now, raise an error, or we can alter Ruby itself to understand "?=" and "!=" as valid syntax (as you mention in ruby-core:4406). So, unless either of you have got a better idea (and a patch), I'm not sure what you're complaining about. Regards, Dan __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com