From: Michael Fellinger Date: 2009-04-23T22:55:06+09:00 Subject: [ruby-core:23295] Re: [Feature #666](Rejected) Enumerable::to_hash On Wed, 22 Apr 2009 05:45:06 +0900 Marc-Andre Lafortune wrote: > I believe the latter form is not only more concise but much more > expressive. > > My final comment would be that although 40 inject({}), a couple of > returning({}) and other places I don't know of in the whole of rails' > code is not that much. Just for comparision's sake, there are only 2 > uses of #assoc, 0 of #rassoc, 1 of #partition, 3 of #grep, etc... So I > believe that #to_hash would be reasonably useful. Doesn't the new behaviour of Hash::[] solve these cases just as well? -- ^ manveru