Re:Smalltalk MVC Translated to JavaScript
by klibertp on Monday January 05, 2015 @02:36PM
(#8840626)
> It is particularly odd to me that the dependents of all instances are stored in a dictionary that is a class variable.
Just a note: these are class variables, not class instance variables. Class variables are a strange thing which is available from both class-side and instance-side methods. It's nice if you want to have a clean interface to both single element (via an instance) and to a collection (via a class).
Just a note: these are class variables, not class instance variables. Class variables are a strange thing which is available from both class-side and instance-side methods. It's nice if you want to have a clean interface to both single element (via an instance) and to a collection (via a class).