News for hackers. Stuff that matters.
Re:Prototypes Are Not Classes by raganwald on Monday January 20, 2014 @12:33AM (#7087767)
Encapsulating instance state us not the point, encapsulating the class behaviour is the point. So, if you can make the prototype itself private and modify the prototype with class methods, you have something that prototypes by themselves do not express.

The analogy is not to a private instance variable in Ruby, the analogy is to a class method in Ruby Dutch as define_method.

There are no comments on this comment yet.