From: Charles Oliver Nutter Date: 2008-11-13T06:36:15+09:00 Subject: [ruby-core:19898] Re: Proposal: Method#get_args Austin Ziegler wrote: > On Wed, Nov 12, 2008 at 1:13 PM, Charles Oliver Nutter > wrote: >> Austin Ziegler wrote: >>> I can see that, perhaps -- although I don't see what it gives us over an >>> array of hash values (except perhaps being lighter weight because of the >>> lack of names in the listed items). >> Representationally I'd say it's a wash...using hashes would not really add >> anything nor subtract anything as far as I can say. In memory, however, >> hashes are significantly more costly than a small array. I'd be interested >> to see your idea of a hashified version, but I think the pure array approach >> is going to be the lightest way by far. > > [ruby-core:19779] Righto...yep, I see where you're coming from, but I don't think it gains much other than the ability to look up by name rather than by position. And it's certain to be a lot heavier than just arrays, though the "weight" of a structure that's hopefully used only rarely probably isn't a huge deal. - Charlie