[ruby-dev:49604] [Ruby trunk Bug#10028][Rejected] nested rest keyword argument

From: matz@...
Date: 2016-04-30 01:00:01 UTC
List: ruby-dev #49604
Issue #10028 has been updated by Yukihiro Matsumoto.

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.


----------------------------------------
Bug #10028: nested rest keyword argument
https://bugs.ruby-lang.org/issues/10028#change-58388

* Author: Nobuyoshi Nakada
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* ruby -v: trunk
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
=E3=83=8D=E3=82=B9=E3=83=88=E3=81=97=E3=81=9Frest argument=E3=81=AF=E9=80=
=9A=E3=82=8A=E3=81=BE=E3=81=99=E3=81=8C

~~~ruby
def f((*a)) end
~~~

=E3=83=8D=E3=82=B9=E3=83=88=E3=81=97=E3=81=9Frest keyword argument=E3=81=AF=
syntax error=E3=81=AB=E3=81=AA=E3=82=8A=E3=81=BE=E3=81=99=E3=80=82

~~~ruby
def f((**a)) end #=3D> syntax error, unexpected **arg
~~~



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next