Ruby 1.8.6 Considered Harmful

April 20th 2011

At $WORK today, we discovered the following anomalie in Ruby 1.8.6:

  {:a => 1}.hash != {:a => 1}.hash
  >> true


This basically means that hashes are not reliable hash keys. It also means that arrays of hashes cannot be modified through set operations, such as #–.

Please, upgrade your rubies.

You can argue that you should never be in a position to find this out. You would be right.

Still upgrade your rubies.

blog comments powered by Disqus