From: "mame (Yusuke Endoh)" Date: 2013-08-08T00:45:54+09:00 Subject: [ruby-core:56435] [ruby-trunk - Feature #6225] Hash#+ Issue #6225 has been updated by mame (Yusuke Endoh). zzak (Zachary Scott) wrote: > matz, if you can make a decision on this alias it would be appreciated! matz explicitly said that he was not positive: https://bugs.ruby-lang.org/issues/6225#note-8 So it is reasonable to look for other aliases. BTW, I don't think that Hash#merge is so frequently-used operation enough to have such a short notation. I guess we may want it only when the values is not important, that is, when the hash is used like a set. In this case, we can use set.rb which provides Set#+. -- Yusuke Endoh ---------------------------------------- Feature #6225: Hash#+ https://bugs.ruby-lang.org/issues/6225#change-40972 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