You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
If the two lines in the constructor were written using some declare-and-initialize syntax distinct from assignment, then these two lines would be all that is necessary to declare and initialize both of these private fields in a data-dependent way. As with tc39/proposal-class-public-fields#2 , this would smoothly accommodate future support for const private fields, which must be initialized and cannot be assigned.
The text was updated successfully, but these errors were encountered:
tc39/proposal-class-public-fields#2 applies here as well. Notice the existing notational redundancy in examples such as
If the two lines in the constructor were written using some declare-and-initialize syntax distinct from assignment, then these two lines would be all that is necessary to declare and initialize both of these private fields in a data-dependent way. As with tc39/proposal-class-public-fields#2 , this would smoothly accommodate future support for const private fields, which must be initialized and cannot be assigned.
The text was updated successfully, but these errors were encountered: