-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
meta-proposalLanguage proposalsLanguage proposalstheme-internalsRelates to internal operations of the languageRelates to internal operations of the languagetype-enhancementNew feature or requestNew feature or request
Description
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.
Metadata
Metadata
Assignees
Labels
meta-proposalLanguage proposalsLanguage proposalstheme-internalsRelates to internal operations of the languageRelates to internal operations of the languagetype-enhancementNew feature or requestNew feature or request