From: Yukihiro Matsumoto Date: 2010-04-13T08:11:09+09:00 Subject: [ruby-core:29480] Re: [Feature #3131] add Kernel#Hash() method like Kernel#Array() Hi, In message "Re: [ruby-core:29462] [Feature #3131] add Kernel#Hash() method like Kernel#Array()" on Mon, 12 Apr 2010 08:32:52 +0900, Suraj Kurapati writes: |There is an imbalance of power in the Ruby core API (when it comes |to arrays and hashes) because it is easier to convert nil values |into empty arrays, thanks to Kernel#Array(), than it is to convert |nil values into empty hashes, due to lack of Kernel#Hash(). Having Hash() might be a good idea. But since conversion from arrays only meaningful for specific case (array of 2-element arrays), I am not sure whether Hash() should support conversion from Array in general or not. matz.