News for hackers. Stuff that matters.
Re:Notch, WebGL, Dart, and ramping up quickly by pkolaczk on Thursday December 05, 2013 @03:58AM (#6853318)
get/set can be added with a single click in most IDEs and all the references to the private variable are fixed for you. However, having a public getter and public setter for a private field is not really that much safer than a public variable. It is still shared, mutable state and anyone holding a reference to the object can mess with its state.

There are no comments on this comment yet.