ra’s avatarra’s Twitter Archive—№ 4,162

  1. …in reply to @aparrish
    @aparrish > class Hash; alias :+ :merge; end => nil > {a:1} + {b:2} => {:a=>1, :b=>2}
    1. …in reply to @ra
      @aparrish I can't see a reason not to. It's pretty neat > hsh = {a:1, b:2} => {:a=>1, :b=>2} > hsh += {c:3} => {:a=>1, :b=>2, :c=>3}