Added by nobu (Nobuyoshi Nakada) over 10 years ago. Updated almost 9 years ago.
Description
ネストしたrest argumentは通りますが
def f((*a)) end
ネストしたrest keyword argumentはsyntax errorになります。
def f((**a)) end #=> syntax error, unexpected **arg
Related issues 1 (0 open — 1 closed)
Related to Is duplicate of Has duplicate Blocks Blocked by Precedes Follows Copied to Copied from Issue # Delay: days Cancel
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