From: "alexch (Alex Chaffee)" Date: 2013-08-07T22:50:19+09:00 Subject: [ruby-core:56434] [ruby-trunk - Feature #6225] Hash#+ Issue #6225 has been updated by alexch (Alex Chaffee). Operator overloading is for convenience and to "least surprise". Since + puts two numbers together, and + puts two strings together, and + puts two arrays together, + should also put two hashes together -- in the way that makes the most sense for each type. ---------------------------------------- Feature #6225: Hash#+ https://bugs.ruby-lang.org/issues/6225#change-40969 Author: trans (SYSTEM ERROR) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor 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/ _______________________________________________ ruby-core mailing list ruby-core@ruby-lang.org http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-core