Hacker News new | ask | show | jobs
by wtetzner 2712 days 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/PR...