class-private syntax in ES6 (was: ES6, ES7, ES8 and beyond. A Proposed Roadmap.)
brendan at mozilla.com
Mon Apr 29 09:47:25 PDT 2013
David Bruant wrote:
> Le 29/04/2013 18:09, Brendan Eich a écrit :
>> Users want class-private (and module-private?) syntax.
> I'm not up-to-date on the module work, but last I looked at it,
> "module private" is everything except what is explicitly exported, no?
> (which is a good thing, I believe)
This isn't clear for nested modules, or wasn't when they were discussed
The big win of private as a declarative keyword would be its short-hand
for const _ = Symbol(), combined with checked uses on right of @.
More information about the es-discuss