Clean slate rejects initializers (and therefore fields). I think I left links to the rationale; if not, follow to the repo and search the issue tracker.
https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE_SYNTAX_FAQ.md#why-not-have-access-be-thisx-without-the-dot … The way to think about it is that private is about lexical scope. So yes, instances can assign to each other's privates.
-
-
that link answers many of my questions, thanks!
-
To address the ASI hazard with other\n#foo, dropping the shorthand in order to also drop the dot seems totally worthwhile. this#foo === that#foo
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.