[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>

I would like to request developers meeting around April 17 or 18 in this month.

14 messages 2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014 — Urabe Shyouhei <shyouhei@...> 2014/04/03

It's good if we have a meeting then.

[#61826] Re: Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...> 2014/04/03

Regarding openssl issues, I’ve discussed possible meeting time with Martin last month and he seemed positive.

[#61833] Re: Plan Developers Meeting Japan April 2014 — Martin Bo煬et <martin.bosslet@...> 2014/04/03

Hi,

[ruby-core:62183] [ruby-trunk - Feature #9778] Bring shortcut methods to Hash

From: nobu@...
Date: 2014-04-28 01:55:57 UTC
List: ruby-core #62183
Issue #9778 has been updated by Nobuyoshi Nakada.

Related to Feature #6225: Hash#+ added

----------------------------------------
Feature #9778: Bring shortcut methods to Hash
https://bugs.ruby-lang.org/issues/9778#change-46338

* Author: Nathaniel Symer
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: syntax
* Target version: next minor
----------------------------------------
My obsession with easy syntax annoys me when I see `Hash#merge` does not have a shortcut in the form of a mathematical operation (like `-` or `+`).

~~~ruby
h_one = { :foo => "bar", :this => "that", :all => "nothing" }
h_two = { :foo => "this", :ruby => "awesome" }

# this isn't as pretty
h_one.merge(h_two)
  =>  { :foo => "this", :this => "that", :all => "nothing", :ruby => "awesome" }

# as this
h_one+h_two
  => { :foo => "this", :this => "that", :all => "nothing", :ruby => "awesome" }`
~~~

Why doesn't this exist in Ruby?



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

In This Thread

Prev Next