fastruby / fast-ruby

:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
https://github.com/fastruby/fast-ruby
5.67k stars 376 forks source link

Hash#update() vs Hash#[]= #195

Closed manjunath724 closed 2 years ago

manjunath724 commented 3 years ago

Hash#update is an alias for Hash#merge!. Ergo, the comparision between Hash#update and Hash#[]= should have similar outcome.

Ref https://github.com/JuanitoFatas/fast-ruby/issues/194

manjunath724 commented 2 years ago

Fasterer PR https://github.com/DamirSvrtan/fasterer/pull/92 has a dependency on this one. It would be very helpful if this PR gets merged in. Thanks.