From: Glenn Parker Date: 2005-01-25T05:32:12+09:00 Subject: Re: attr Trans wrote: > Thanks Glenn, > > But do you really find something like: > > | attr :a, :a=, :c? > > so obfuscating? Every thing has some learning curve to it. I grant you. > But my bet is that this notation would be almost completely undestood > on one's first hunch. I would probably guess correctly about ":a=", but not ":c?". I would view these things differently if they were incorporated into the language standard, but as add-ons they just confuse things for little perceivable benefit. I mean, "attr_accessor :symbol" is not transparent to me either, but it's part of the accepted programming conventions for Ruby, and I use it because it requires nothing beyhond baseline Ruby knowledge for the reader. When you want to push beyond that baseline, you should aim to get more bang for your buck. -- Glenn Parker | glenn.parker-AT-comcast.net |