Actions
Bug #10028
closednested rest keyword argument
Description
ネストしたrest argumentは通りますが
def f((*a)) end
ネストしたrest keyword argumentはsyntax errorになります。
def f((**a)) end #=> syntax error, unexpected **arg
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Related to Feature #8895: Destructuring Assignment for Hash added
Updated by hsbt (Hiroshi SHIBATA) about 10 years ago
- Status changed from Open to Assigned
Updated by nobu (Nobuyoshi Nakada) over 8 years ago
- Description updated (diff)
Updated by matz (Yukihiro Matsumoto) over 8 years ago
- 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.
Actions
Like0
Like0Like0Like0Like0