News for hackers. Stuff that matters.
Re:V8 release v7.2 by Klathmon on Tuesday December 18, 2018 @09:38AM (#18706613)
as of right now, `example.#myVar` isn't valid syntax, which is the reason that the # sigil was chosen.

It's not possible to have current code that works like that, so defining new properties for that code (that it can only be used inside the class as a private field) isn't breaking anything.

In other words, outside of the class implementation, `example.#myVar` is always an error, regardless of the existence of a private field or not, and it will always be an error with or without this proposal. And inside the class it's only legal if the private field was defined in the class.

There are no comments on this comment yet.