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

Pattern matched assignment #47

Closed
dgkf opened this issue Sep 6, 2023 · 0 comments · Fixed by #58
Closed

Pattern matched assignment #47

dgkf opened this issue Sep 6, 2023 · 0 comments · Fixed by #58
Labels
meta-proposal Language proposals theme-internals Relates to internal operations of the language type-enhancement New feature or request

Comments

@dgkf
Copy link
Owner

dgkf commented Sep 6, 2023

I would love for R to support some sort of destructuring.

Specifically, I think it would look something like this:

list(a, b) <- list(1, 2)

Or, since we already support (, ) syntax as a list, this could be rewritten as:

(a, b) <- (1, 2)

Since R already implements generic assignment calls, this would mean that we'd just have a couple special cases for some basic AST constructors.

@dgkf dgkf added type-enhancement New feature or request theme-internals Relates to internal operations of the language meta-proposal Language proposals labels Sep 6, 2023
@dgkf dgkf linked a pull request Oct 2, 2023 that will close this issue
@dgkf dgkf closed this as completed in #58 Oct 2, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-proposal Language proposals theme-internals Relates to internal operations of the language type-enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant