Per https://github.com/wycats/javascript-private-state#private-slots-in-object-literals - why wouldn't I be able to do:
var proto = {
protected #data;
};
var obj = Object.create(proto);
obj.foo = function () { return this.#data; };
obj.foo();
?
In other words, why the requirement for static definition? Does that also mean that there will be no reflective mechanism for defining/adding/removing/iterating/getting/setting data slots?
Per https://github.com/wycats/javascript-private-state#private-slots-in-object-literals - why wouldn't I be able to do:
?
In other words, why the requirement for static definition? Does that also mean that there will be no reflective mechanism for defining/adding/removing/iterating/getting/setting data slots?