proposal-class-fields icon indicating copy to clipboard operation
proposal-class-fields copied to clipboard

Orthogonally-informed combination of public and private fields proposals

Results 37 proposal-class-fields issues
Sort by recently updated
recently updated
newest added

I'm not sure what is the accurate intention here. The text says prohibits listed derivations (in Strict Mode) of UnaryExpression such as `MemberExpression . PrivateIdentifier`. The problem is, OptionalChain is...

I really often need to access private fields in librairies i use in order to fix small issues, as a workaround, cause the library is badly done, really really often,...

I.e. why are they not scoped at the module level instead of at the class level? This means we can't use #private fields along with class-factory mixins. This works fine:...

Hi, From my point of view it seems like mistake to use # for private fields, because it is not extensible ... If in future we would want to use...

Hi! Sorry, if this is something already discussed, give me a link please. Let assume situation there is a nested Proxy in prototype chain. ```js class MyClass { someField =...

# 对于class fields及其相关一揽子提案的意见陈述 # Statement of our opinions on class fields and its related package of proposals _说明:本文原以中文撰写,我尽量确保翻译准确,但限于条件,可能有错漏。_ _Note: This article is formally written in Chinese, I try my best...

I want to share something that can become a little of a headache for my users of the [Dexie.js](https://github.com/dfahlander/Dexie.js/) library. I'm not advocating for a change (because I haven't deep-dived...

I had code like the following, which worked great with `[[Set]]` semantics (f.e. in TypeScript with `useDefineForClassFields` set to `false`): ```js class Sub extends Node {...} const s = new...

Composition, mix-ins, etc is a natural feature of JS as dynamic language. How can prviate fields from this proposal used with dynamically composing a class? Say, I have a class...

I was writing a simple object today and I wondered why private fields are restricted to classes? e.g. ``` function make(name, ssnP) { return { name, validateUser(expectedSSN) { return ssnP...