Issue #16045 has been updated by shyouhei (Shyouhei Urabe).

Status changed from Open to Rejected

https://www.google.com/search?q=ruby+keyword+arguments

----------------------------------------
Feature #16045: Calling functions with keyword arguments
https://bugs.ruby-lang.org/issues/16045#change-80391

* Author: D1mon (Dim F)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Python:
``` python
def fn(a=1,b=2,c=3):
    print(a,b,c)

fn() # 1 2 3
fn(c=4) # 1 2 4
```


Ruby:
``` ruby
def fn(a=1, b=2, c=3)
  p a,b,c  
end

fn(c=4) # 4 2 3
```

A very convenient and necessary thing that you must add in Ruby!?



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>