Bug #10028
closed
nested rest keyword argument
Added by nobu (Nobuyoshi Nakada) over 10 years ago.
Updated over 8 years ago.
Description
ネストしたrest argumentは通りますが
def f((*a)) end
ネストしたrest keyword argumentはsyntax errorになります。
def f((**a)) end #=> syntax error, unexpected **arg
- Related to Feature #8895: Destructuring Assignment for Hash added
- Status changed from Open to Assigned
- Description updated (diff)
- Status changed from Assigned to Rejected
This is intentional. Nested arguments are assignees of multiple assignments in reality. And multiple assignments do not support rest keyword argument (yet). When we introduce something like #8895, it should be supported.
Matz.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0