From: James Britt Date: 2005-09-18T13:36:26+09:00 Subject: Re: proposed attr writer patch Daniel Berger wrote: > Hi all, > > Currently, if you do something like this: > > attr_accessor :foo?, :bar! > > You end up with "bar!=", "foo?=", "bar!", and "foo?". The problem is > that "bar!=" and "foo?=" are both pointless and syntactically invalid. > Wouldn't it be better if accessors followed the DWIM approach so that we > end up with something both useful and syntactically valid? Why would someone write 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? James