Project

General

Profile

Actions

Feature #18351

closed

Support anonymous rest and keyword rest argument forwarding

Added by jeremyevans0 (Jeremy Evans) about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:106175]

Description

I would like to add support for the following syntax:

def foo(*)
  bar(*)
end
def baz(**)
  quux(**)
end

This is a natural addition after the introduction of anonymous block forwarding. Anonymous rest and keyword rest arguments were already supported in method parameters, this just allows them to be used as arguments to other methods. The same advantages of anonymous block forwarding apply to rest and keyword rest argument forwarding.

I've submitted a pull request implementing this syntax: https://github.com/ruby/ruby/pull/5148


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #18828: [Ripper] Anonymous parameter forwarding failures are not checkedClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0