-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Stage 3 Decorators normative changes #56955
Conversation
More normative changes in Stage 3? They really can’t nail this one down, can they? |
This happens with any large proposal. Runtimes generally don't start actual implementations until Stage 3, and once they do there is often feedback that requires normative changes based on implementation experience. The point of Stage 3 is to catch these issues when the rubber hits the road. So far, the changes to Decorators in Stage 3 have been relatively minor compared to other proposals of this magnitude and consist mostly of timing-related changes so that the feature is consistent and meets user expectations. Decorators is actually fairly stable in comparison, and the fact we have only had such minor changes is a testament to the time, energy, and attention to detail of everyone involved in the proposal. |
I guess it seems worse because IIRC decorators were stage 3 originally, then rolled back to stage 2 for a bit, and now are stage 3 again, so the normative changes since then stand out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on my naive understanding, LGTM 😄
(Needs a dprint fmt
).
This changes our Stage 3 Decorators down-level emit to align with recent normative changes to the proposal.
Unfortunately, this will further complicate #55688, which pertains to the emit size for decorators, as this will increase overall emit size since we have to track "extra" initializers on a per-element basis.
Related pzuraq/ecma262#12
Related tc39/proposal-decorators#513
Fixes #56606