News for hackers. Stuff that matters.
Re:Classes are Expressions by matchu on Thursday June 04, 2015 @05:08PM (#9662071)
I like the simple syntax of the underscore convention, and I also appreciate that the article's approach actually enforces the encapsulation. I wonder if there's a convenient way to use this structure and also keep the simpler syntax.

Heck, you could probably make a macro such that `this._foo` compiles to `this[privateProperties.foo]`, but I'd probably scream about how misleading that is…

There are no comments on this comment yet.