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

Stage 2 proposal for public class fields in ECMAScript

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

There's some debate over what the semantics should be. I wanted to try to collect arguments in one place. | Set | Define | | --- | --- | |...

The current document defines properties that are nonconfigurable, based on a change by @michaelficarra . I wanted to open this bug to discuss whether they should be configurable or nonconfigurable,...

> TL;DR Don't allow class values without qualifiers. The notion is ambiguous and counter to classes just being syntactic sugar on top of the prototype chain. Options `static`, `let`, `const`...

https://github.com/erights/Orthogonal-Classes In this syntactic framework, public properties would be declared as ```js class Foo { own bar = 3, baz = 4; // ... } ``` This declares and initializes...

At the March TC39 meeting, I and others were able to articulate our misgivings about the current proposal. The obviously troublesome cases are things like: ``` js class C {...

For more information, see https://phabricator.babeljs.io/T7301 and referenced other issues The main problem with the current specification is that it does prevent certain decoration use cases and also that it gives...

I was introduced to this proposal from [a Babel issue](https://github.com/babel/babel/pull/4500) on supporting computed class properties. Is that the gist of this proposal? If it is I think it could use...

Where can I find examples (with explanations) of the syntax in its present state? That seems like something that belongs in this proposal repository eg. - https://github.com/tc39/ecmascript-asyncawait/blob/master/server.asyncawait.js - https://github.com/rwaldron/exponentiation-operator#usage -...

Options: - The new object under construction -- what this proposal currently states - undefined or TDZ -- what the private state proposal states - The outer `this` captured lexically,...

Consider ``` js (class { [console.log(1)] = null; [console.log(2)](){} [console.log(3)] = null; }); ``` As spec'd, evaluating this class expression would print `2 1 3`. This seems clearly wrong; computed...