Skip to content
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

ExtractorAssignmentPattern elisions #23

Closed
waldemarhorwat opened this issue Apr 17, 2024 · 1 comment · Fixed by #29
Closed

ExtractorAssignmentPattern elisions #23

waldemarhorwat opened this issue Apr 17, 2024 · 1 comment · Fixed by #29
Milestone

Comments

@waldemarhorwat
Copy link

The ExtractorAssignmentPattern grammar includes elisions inside parameter lists, but it's a cover grammar for which the original grammar doesn't allow elisions, so one can't actually use elisions here. What is the intent here?

@rbuckton rbuckton added this to the Stage 2 milestone May 28, 2024
@rbuckton
Copy link
Collaborator

Essentially, there are two options to consider:

  1. Remove Elision from ExtractorAssignmentPattern and instead depend on discards from the Discard (void) Bindings proposal.
  2. Introduce Elision into a cover grammar for Arguments.

Ultimately, the choice for Elision may depend on the direction of the Discard (void) Bindings proposal, and as such may change in Stage 2 to match. We could always choose to follow (2) here, since we will want to support (1) regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants