From: Joel VanderWerf Date: 2008-10-21T02:30:16+09:00 Subject: Re: instance counter Pit Capitain wrote: > 2008/10/20 Robert Klemme : >> 2008/10/19 Marc Heiler : >>> I would even go as far as to >>> claim in 95% of the cases, there is no real need to use @@ at all. >> Absolutely agree! Class variables are one of the rare spots of Ruby >> where it does not shine at all IMHO. > > No, I think they are absolutely useful in the (rare) cases when you > need exactly what they offer compared to class instance variables. The > only thing that might be the source for problems is their name: too > many people associate something different with "class variables". > > Regards, > Pit You're right. They should have an ungainly name, like "class tree variables", which would help to discourage their use, except in those rare cases. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407