Private State
Daniel Ehrenberg (littledan)
Syntax
class Foo {
#x;
#y = z;
foo() { #x++; return this.#x }
}
Semantics
Interaction with other features
let barGetter;�class Foo {� #bar;� static { barGetter = instance => instance.#bar }�}
Why inaccessible private state? (bug)
let x = Symbol("x");�class Foo {� [x] = 1;�}
Internal slot-based specification mechanics
Open questions
Current status