[ruby-core:77758] [Ruby trunk Feature#9209] Struct instances creatable with named args

From: herwin@...
Date: 2016-10-25 07:01:13 UTC
List: ruby-core #77758
Issue #9209 has been updated by Herwin Quarantainenet.


This looks like a duplicate of #11925 (or maybe the other way around, but the other ticket includes more information)

----------------------------------------
Feature #9209: Struct instances creatable with named args
https://bugs.ruby-lang.org/issues/9209#change-61065

* Author: First Last
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
now that ruby supports named params it seems natural for Struct to make use of them.

Struct.new(:a).new(a: 1)



-- 
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>

In This Thread