-
Notifications
You must be signed in to change notification settings - Fork 75
pre-Stage 3 review #102
Comments
I'm not necessarily as familiar with the spec text as @claudepache and @jridgewell. Would either of you be able to help? If not, I I will try to take some time to do so later tonight or tomorrow. @zenparsing @rkirsling @bcoe, let me know when we can get explicit signoff. |
I don't believe there are any changes in
They're leftovers from when we had |
In that case perhaps those sections could be removed? |
#103 has the appropriate diff tags for the requested sections, and a few more. Hope that is helpful! |
Okay, #103 is merged. Awaiting signoff from our fabulous reviewers. 😃 |
Wow, that PR made things way easier to read! Spec content looks good, though I see two minor editorial concerns:
Incidentally, I noticed while checking (1) that single-line versus multi-line productions are getting mixed for some pretty yucky results over there. 😮 We should track that separately. |
I'm actually going to be traveling today. Would you be able to list out specific differences in alignment? I'll try to take care of it by Monday if I can. Alternatively, you can send a direct PR for anything that looks a little off. |
Fresh LGTM. Would it make sense to upstream the EvaluateStaticPropertyAccess and EvaluateDynamicPropertyAccess operations to the main spec now, so the resulting diff for this proposal is smaller? It seems like it'd be a useful refactoring as-is. (also the editorial change here) |
👍 on removing any sections left over from the nil reference proposal. re: we probably ought to resync section 3.5Agreed (figured we'd do this as late as possible) but it would be great to make sure we're in alignment with the current version of the spec. Would it make sense to upstream the EvaluateStaticPropertyAccess and EvaluateDynamicPropertyAccess operations to the main spec now@ljharb I like the idea of potentially landing re: sign offThis is looking good to me 👍 I'm excited to give it a final read through as we address some of the comments in this thread; but nothing is looking out of place to me. |
The spec has some cases where syntax-directed runtime operations are invoked like 👍 |
It sounds like we have the appropriate signoffs! 🚀 While it also appears that the recommendations here are not blockers, can I get a few concrete examples of the suggestions here to ensure that this proposal is in good shape for the meeting? For example
|
(also, I will give the upstream changes a shot, but it sounds like that is something that can happen regardless of stage 2/3, so it is not an immediate priority) |
For 3.5, I just mean that while all the content is there, it's shaped as "here are the three chunks that need to be inserted in the right places of the appropriate section" instead of actually copying over said appropriate section and performing the insertions. 😄 |
Also, about the cosmetic discrepancy of 3.1.1 (and also 3.4) vs. 3.2.2 and 3.2.3: I think it's probably 3.2.2 and 3.2.3 that are doing the odd thing by not using |
What are the exceptions? e.g. |
|
I just find it visually inconsistent. It's clearly justified though, but for the newcomer it sure looks like an object.
Are the exceptions |
When would super sometimes work and sometimes not? I believe super is a syntax error when not inside a derived class method. |
Wouldn't surprise me; never tried though. Anyway my remark was more about consistency than usefulness. What about a mention in the README? |
> class Foo { constructor () {super()} }
Thrown:
class Foo { constructor () {super()} }
^^^^^
SyntaxError: 'super' keyword unexpected here I think this case, and similar cases like The feature looks like an error suppression operator, right?
Perhaps it's worthwhile to add a couple more examples in this section though? |
Optional Or are you thinking about For |
@bcoe The FAQ item “The feature looks like an error suppression operator, right?” was alluding to runtime errors, not syntax errors. |
The thing is though, that none of these three are PrimaryExpressions—the valid productions which contain them are listed off one by one, which kind of makes them more like operators than identifiers. I don't think this should be surprising for |
I’ve open PR #106 in order to address the issue raised in the last comments. Please, stop hijacking this thread, and continue the discussion there. |
Closing as obsolete |
(you'll also need signoff from the designated reviewers, and from @zenparsing)
although it looks OK, could you add
<ins>
/<del>
tags around all individual changes in existing algorithms, like https://tc39.es/proposal-optional-chaining/#sec-function-calls-runtime-semantics-evaluation? It's tricky to review without the markup.The text was updated successfully, but these errors were encountered: