Closed tim-mc closed 5 years ago
Proposal Status: Stage 3 @ May 2018 TC39 meeting Meeting Slides: Status Class Features Proposal Repo: tc39/proposal-static-class-features
Article on class features subject by @syg: "The Semantics of All JS Class Elements"
Prior Work:
class Account { // ... static #makeTransaction(dollars, from, to) { Account.#transactions = this.#transactions.concat(/* ... */); } transfer(dollars, targetAccount) { return Account.#makeTransaction(dollars, this, targetAccount); } }
cc @robpalme @littledan @nicolo-ribaudo
I plan to begin putting together a WIP PR for this soon.
This is completed now that https://github.com/babel/babel/pull/9446 has been merged.
I'll open another issue for private static accessors.
Info
Proposal Status: Stage 3 @ May 2018 TC39 meeting Meeting Slides: Status Class Features Proposal Repo: tc39/proposal-static-class-features
Article on class features subject by @syg: "The Semantics of All JS Class Elements"
Prior Work:
Example
cc @robpalme @littledan @nicolo-ribaudo