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

Document multiple assignment tuple unwrapping #508

Closed
dlrobertson opened this issue Dec 13, 2022 · 2 comments · Fixed by #512
Closed

Document multiple assignment tuple unwrapping #508

dlrobertson opened this issue Dec 13, 2022 · 2 comments · Fixed by #512
Labels
addition/proposal New features or enhancements

Comments

@dlrobertson
Copy link
Member

"Let (variableOne, variableTwo) be the result of functionReturningTuple" is a valid statement, but is not documented in Tuples.

Originally posted by @domenic in whatwg/dom#1134 (comment)

We've been doing it as "Let (prefix, localName) be the result of..." but only for tuples, not lists. (And it's not documented anywhere.)

@annevk
Copy link
Member

annevk commented Dec 13, 2022

I think in particular for strictly split it would be helpful if this worked on list-likes as well (the let-side could still use the tuple syntax I suppose), but maybe we ought to tackle that separately.

@annevk annevk added the addition/proposal New features or enhancements label Dec 13, 2022
@dlrobertson
Copy link
Member Author

Done! Opened #509 and added context

annevk pushed a commit that referenced this issue Dec 21, 2022
"Let (variableOne, variableTwo) be the result of functionReturningTuple." is now a valid statement.

Fixes #508.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements
Development

Successfully merging a pull request may close this issue.

2 participants