From: "alexeymuranov (Alexey Muranov)" Date: 2012-04-13T14:48:38+09:00 Subject: [ruby-core:44326] [ruby-trunk - Feature #6225] Hash#+ Issue #6225 has been updated by alexeymuranov (Alexey Muranov). I would like to give an algebraic counterpart to Matz's objection: `merge` is not injective in second argument: a.merge(b) == a.merge(c) does not imply b == c, but most uses of `+` are injective in each of the arguments. However, `Set#+` is an exception to this rule, it seems that it is equivalent to `Set#|`, isn't it? ---------------------------------------- Feature #6225: Hash#+ https://bugs.ruby-lang.org/issues/6225#change-25873 Author: trans (Thomas Sawyer) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: 2.0.0 Strings and Arrays can be combined with #+. I don't see any reason not to allow Hashes to do so as well. class Hash alias :+ :merge end -- http://bugs.ruby-lang.org/