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

Disallow empty binding patterns #5352

Closed
DanielRosenwasser opened this issue Oct 21, 2015 · 3 comments
Closed

Disallow empty binding patterns #5352

DanielRosenwasser opened this issue Oct 21, 2015 · 3 comments
Labels
By Design Deprecated - use "Working as Intended" or "Design Limitation" instead ES6 Relates to the ES6 Spec

Comments

@DanielRosenwasser
Copy link
Member

It's currently being discussed whether or not an empty binding pattern should be an early error.

See tc39/ecma262#97

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Breaking Change Would introduce errors in existing code ES6 Relates to the ES6 Spec In Discussion Not yet reached consensus and removed Bug A bug in TypeScript labels Oct 21, 2015
@mhegazy mhegazy added the Suggestion An idea for TypeScript label Oct 23, 2015
@RyanCavanaugh
Copy link
Member

Note: Outcome in linked bug was to continue to allow empty binding patterns.

That said, we should think carefully about how this ought to work in TypeScript since we have more user-side syntactic ambiguity and might want to make this an error.

@DanielRosenwasser
Copy link
Member Author

Consider #5586 while discussing this.

@RyanCavanaugh RyanCavanaugh added By Design Deprecated - use "Working as Intended" or "Design Limitation" instead and removed Breaking Change Would introduce errors in existing code In Discussion Not yet reached consensus Suggestion An idea for TypeScript labels Feb 1, 2016
@RyanCavanaugh
Copy link
Member

If ES6 was willing to justify this, we're OK with it too.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
By Design Deprecated - use "Working as Intended" or "Design Limitation" instead ES6 Relates to the ES6 Spec
Projects
None yet
Development

No branches or pull requests

3 participants