Project

General

Profile

Actions

Bug #7662

closed

Unable to define a method with bare `**`

Added by wycats (Yehuda Katz) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0dev
Backport:
[ruby-core:51269]

Description

This works:

def foo(*)
end

This does not:

def foo(**)
end

This does not:

def foo(*, **)
end

I use bare * often in combination with bare super to extend a superclass without being brittle to its exact signature. With keyword arguments, this seems like it will be impossible. I am opening several other related issues.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0