Project

General

Profile

Actions

Feature #6225

closed

Hash#+

Added by trans (Thomas Sawyer) over 12 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
[ruby-core:43904]

Description

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


Related issues 2 (0 open2 closed)

Has duplicate Ruby master - Feature #9778: Bring shortcut methods to HashRejectedmatz (Yukihiro Matsumoto)04/27/2014Actions
Has duplicate Ruby master - Feature #17384: shorthand of Hash#mergeFeedbackActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0