4 ms·
> Why not use private.x to refer to a private field of this, and private(that).x to refer to a private field of another object? I don't find the answer to this
by wtetzner 8y ago
> Why not use private.x to refer to a private field of this, and private(that).x to refer to a private field of another object?
I don't find the answer to this [1] to be particularly compelling. This actually seems like the right solution to me.
[1] https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE_SYNTAX_FAQ.md#why-not-use-privatex-to-refer-to-a-private-field-of-this-and-privatethatx-to-refer-to-a-private-field-of-another-object https://github.com/tc39/proposal-class-fields/blob/master/PR...