Trans
2/11/2009 11:13:00 PM
On Feb 11, 10:26=A0am, Yukihiro Matsumoto <m...@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: Array#to_hash"
> =A0 =A0 on Thu, 12 Feb 2009 00:19:10 +0900, Trans <transf...@gmail.com> w=
rites:
>
> |Would any problems arise from extending Array with this?
>
> Nothing I can think of, except that I have never wanted such
> conversion from array to hash in my 16 year Ruby programming. ;-)
True enough. And maybe there never will be. There are many words in
the dictionary I never use too. Still, they have definitions, and if
one were to define Array#to_hash, that would seem like the clear
meaning. (I use #to_h for the more useful conversions).
Thanks,
T.