-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: quick fixes for recent merges #1787
Conversation
Could we instead define "the Number value" for a BigInt in terms of "the mathematical value of"? |
We could, but I don't think it would be a good idea. |
Why not? |
And for what benefit? Just to make one algorithm shorter by 4 words? |
the mathematical value of
Added 6 commits relating to yesterday's merges. |
I'm fine with all the commits except that I'm unsure about "eliminate grammatical parameters" (d7745ff). Can you explain that one a bit? |
Given a production that is defined with grammatical parameters, when we recap it (e.g., to associate it with an early error rule or an SDO algorithm), we almost always omit the grammatical parameters and other 'annotations'. As 5.2.2 Syntax-Directed Operations says:
For example, see the Early Errors for UpdateExpression, where you can compare the productions to the defining productions immediately prior. |
So, is that why it's editorial - because all of those tags are correct but implied and thus redundant? |
Yup. |
Added two commits re Punctuator in the lexical grammar: one to eliminate an ambiguity introduced in PR #1646, and one to do some refactoring while I was in the neighborhood. |
I'm not certain about your number 2 in 74a1046 - it seems clearer to me to have |
I disagree, but not enough to fight it, so I've reinstated |
... to match the clause title (operation name). (from PR #1646)
I've pulled the two markup fix commits directly into master, and rebased this PR. |
Added a commit re whitespace in |
Added a commit to fix a couple things from PR #1406. |
Added a tiny commit to remove an extraneous comma. |
(force-pushed to resolve a merge conflict) |
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.
lgtm, thanks for the many small fixes
The phrase "the Number value for X" is only defined on mathematical values, but `_prim_` is a BigInt value here. So we have to take the mathematical value of `_prim_` before applying "the Number value for ..."
- insert space before paren in clause heading - eliminate grammatical parameters from non-defining production - Add 4 <emu-prodref> elements to Annex A - tweak syntax in algorithms - eliminate accidental ambiguity in Punctuator PR tc39#1646 introduced an ambiguity to the lexical grammar: Punctuator derives OtherPunctuator in two different ways -- directly, and indirectly via OptionalChainingPunctuator. It doesn't make sense for OptionalChainingPunctuator to derive OtherPunctuator, so I've eliminated that alternative. - minor grammar refactoring re Punctuator Move the Punctuator production back to its former position. (Grammars are generally written top-down.) - Fix a 'use' production for AsyncConciseBody to match the new defining production - Add an <emu-prodref> for ExpressionBody to Annex A
About half of the changes delete an extraneous space at the end of a lookahead annotation. The rest are misc. None of them will make a visible difference in the rendered version.
The phrase "the Number value for X" is only defined on mathematical values,
but
_prim_
is a BigInt value here.So we have to take the mathematical value of
_prim_
before applying "the Number value for ..."
(Quick fix for PR #1766.)