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

As a user I want to use private fields similar as in ECMAScript #668

Closed
jpilgrim opened this issue Mar 6, 2018 · 1 comment
Closed

As a user I want to use private fields similar as in ECMAScript #668

jpilgrim opened this issue Mar 6, 2018 · 1 comment

Comments

@jpilgrim
Copy link
Contributor

jpilgrim commented Mar 6, 2018

The ECMAScript proposal

https://github.com/tc39/proposal-class-fields

introduces fields of classes. Public fields are similar to N4JS (except the missing "public" keyword), private fields use a prefix "#". Accessing private fields can either be done with "this.#x" or simply via "#x".

The proposal is now in stage 3 (candidate) meaning that it is almost done.
It is planned for

Since it is mainly syntax, we should adapt to that as well.

@jpilgrim
Copy link
Contributor Author

jpilgrim commented Jul 6, 2019

Closed as this is a duplicate of #1221

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

1 participant