Ellipsis expansion into arguments #49
Labels
meta-proposal
Language proposals
theme-internals
Relates to internal operations of the language
type-enhancement
New feature or request
The inverse of #48 is expanding into ellipsis.
I think this should use the same syntax as #48
I don't think there are situations where it's ambiguous.
..rest
for collecting into arguments will only happen when destructuring or in a function signature, while..rest
for passing arguments only happens in calls. This might introduce some confusion in situations where the..rest
argument in a function signature is re-used as an argument to default value for another parameter:In this case, the
..rest
at the end of the function call collects args, while the..rest
innames(..rest)
passes those arguments tosum
.The text was updated successfully, but these errors were encountered: