Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private Static Methods (Stage 3) #55

Closed
tim-mc opened this issue Jan 28, 2019 · 2 comments
Closed

Private Static Methods (Stage 3) #55

tim-mc opened this issue Jan 28, 2019 · 2 comments

Comments

@tim-mc
Copy link

tim-mc commented Jan 28, 2019

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

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

@tim-mc
Copy link
Author

tim-mc commented Jan 28, 2019

I plan to begin putting together a WIP PR for this soon.

@tim-mc
Copy link
Author

tim-mc commented Mar 13, 2019

This is completed now that babel/babel#9446 has been merged.

I'll open another issue for private static accessors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants