Closed taylortom closed 1 year ago
Adding class fields in particular would take out a lot of bloat from the init functions to help readability.
TODO: check how doc generator handles this new stuff.
class MyClass { myAttr=5 #myPvtAttr=10 constructor() { this.#myPvtFunc(); } #myPvtFunc() { this.#myPvtAttr += 10; } get p() { return this.#myPvtAttr; } } const c = new MyClass(); console.log(c.p); // 20 console.log(c.#myPvtAttr); // error c.#myPvtAttr(); // error
Adding class fields in particular would take out a lot of bloat from the init functions to help readability.
TODO: check how doc generator handles this new stuff.