Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

And what about "protected", the most important in class inheritance ? #105

Closed
doodadjs opened this issue Jun 10, 2018 · 4 comments
Closed

Comments

@doodadjs
Copy link

I don't see a lot of talks about "protected", most are granted to "public" and "private". Will "protected" be another proposal ?

@ljharb
Copy link
Member

ljharb commented Jun 10, 2018

https://github.com/tc39/proposal-class-fields/search?q=protected&type=Issues points to #86 and #59, which should answer your questions.

@doodadjs
Copy link
Author

Will we need a library like "lowclass" ? Will we have to expose "private" fields to each inherited class ? Is it what "protected" will be ?

Can you please summarize the consensus ?

@ljharb
Copy link
Member

ljharb commented Jun 10, 2018

Someone else can probably better summarize the consensus on it than i; but i definitely disagree that protected is the most important - i find it least important, and private most.

@littledan
Copy link
Member

We have discussed including a decorator standard library which would serve this purpose. Closing as a duplicate #86 and #59.

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

No branches or pull requests

3 participants