Project

General

Profile

Actions

Bug #7662

closed

Unable to define a method with bare `**`

Added by wycats (Yehuda Katz) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
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