Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Are ordered hashes useful?
- Date: Tue, 15 Feb 2011 11:04:48 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Are ordered hashes useful?
- References: <4D4E75AB.5060703@example.com> <4D4FB368.4010403@example.com> <AANLkTimk8AUJMRiwbPjGfDfciCwfaQr9_o3vBXtW2+rW@example.com> <87lj1rza76.fsf@example.com> <AANLkTikqy8G6G1Pt3ramSqxKHKJHSpo=zjHYLVENW0Gb@example.com> <878vxqyfok.fsf@example.com> <AANLkTiknPv3VsKzKQVxMacFE9i9aSSmwXDU4Fz+rZU3g@example.com> <AANLkTi=-0DXwOzc4yOriXptsvXkNZGh71Jgm=Rzu_2tW@example.com>
Marty Pauley writes: > On Sat, Feb 12, 2011 at 3:42 PM, Jun-Dai Bates-Kobashigawa > <jd.lists@example.com> wrote: > > > > Then there are cases where you want a data structure that provides both > > dictionary access and ordered list access. > > That data structure is called a "tree". It's very common. Not to mention highly elaborated. But it's not clear that dictionary order and ordered-list order are the same. For example, on python-dev the killer reason (ie, one that cannot be implemented with existing constructs) for requesting ordered dictionary was not for user use, but rather for implementing an optimization in function calls. The application is that database interfaces often create functions that have hundreds of named arguments, and it's often (unacceptably) inefficient to access them by name. If the list were ordered and accessible by index position, this could be optimized. But the order in question here is not dictionary (lexicographic) order of names, but the order in the function call (which typically corresponds to the database schema, as you've probably already guessed). > > > If there were such a construct in the language I was working in, > > I'm guessing I would use it. > > Maybe time to find a better language? :-) Or a better employer. :-)
- Follow-Ups:
- Re: [tlug] Are ordered hashes useful?
- From: Raymond Wan
- References:
- [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Dave M G
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Raymond Wan
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Stephen J. Turnbull
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Jun-Dai Bates-Kobashigawa
- Re: [tlug] Are ordered hashes useful?
- From: Marty Pauley
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Ubuntu server, Windows 7 client, and the firewall between them
- Next by Date: Re: [tlug] Are ordered hashes useful?
- Previous by thread: Re: [tlug] Are ordered hashes useful?
- Next by thread: Re: [tlug] Are ordered hashes useful?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links