The following is a lot clearer to me, and since Hashes are ordered, its just as effective. In the past, we couldn't do this because of the unordered nature of Hash in Ruby <= 1.8.7.
Note that for a major version we may want to deprecate the "backwards" format. We still need associative Arrays for if you want multiple nil keys, but I think just supporting Hash and associative Arrays makes the code much simpler.
The following is a lot clearer to me, and since Hashes are ordered, its just as effective. In the past, we couldn't do this because of the unordered nature of Hash in Ruby <= 1.8.7.
Note that for a major version we may want to deprecate the "backwards" format. We still need associative Arrays for if you want multiple nil keys, but I think just supporting Hash and associative Arrays makes the code much simpler.