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

Add Destructure Expression #129

Open
ClickerMonkey opened this issue Oct 20, 2020 · 0 comments
Open

Add Destructure Expression #129

ClickerMonkey opened this issue Oct 20, 2020 · 0 comments
Assignees

Comments

@ClickerMonkey
Copy link
Member

Analogous to:

const { x, y: yy } = getPoint()
const [x0, , z0] = getPointTuple();
// x, yy, x0, z0

The expression takes a mapping which takes the variableName to add to the context and the value is the tuple index or object property.

@ClickerMonkey ClickerMonkey self-assigned this Oct 20, 2020
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

No branches or pull requests

1 participant