From: Gary Wright Date: 2007-10-19T06:46:11+09:00 Subject: Re: Class instance variable idiom On Oct 18, 2007, at 1:22 PM, David A. Black wrote: > In Ruby > 1.8, class variables are going to be somewhat more strictly > per-class. That's a mixed blessing. They're going to come closer to > representing a class's state, but then the question will arise: why > have both that *and* instance variables of classes? It's not > impossible to answer that, but it's not a bad question. My gut says that code that utilizes class variables can always be refactored to use class instance variables and perhaps some accessor methods and the result will be equal or better to the original class variable code. I say ditch class variables all together. Gary Wright