Don’t Use Objects as Hash Keys in Ruby
18-May-2017 3174
Hashes have been optimized for symbols and strings in Ruby which technically are objects but this article is for revealing how much of a difference this makes when using other objects as hash keys. There are some cases where this makes a big difference but many times you won’t notice much of a difference.
Don’t Use Objects as Hash Keys in Ruby #ruby #rubydeveloper #rubyonrails #Don’t #Objects https://rubyonrails.ba/link/don-t-use-objects-as-hash-keys-in-ruby