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][tlug] Are ordered hashes useful?
- Date: Tue, 08 Feb 2011 19:38:19 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: [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>
Changing the Subject, because I'm changing the subject. Josh Glover writes: > Ruby has a hash that keeps the keys FIFO ordered, if that makes sense. > The first key you put in is the first key that > GoogleOnlyKnowsTheNameOfTheHashClass#keys will return. This has recently been proposed for Python, but the consensus so far is that it's not very useful by itself. It doesn't quite do the right thing when used as a dictionary for keeping keyword arguments AIUI, which is the most common proposed use for a "bare" FIFO hash at python-dev. (The people who want this are probably trying to solve Dave's problem in an elegant way, in fact, now that you remind me of the idea of ordered hash.) Do you know of any use cases for it?
- Follow-Ups:
- Re: [tlug] Are ordered hashes useful?
- From: Josh Glover
- Re: [tlug] Are ordered hashes useful?
- From: Jun-Dai Bates-Kobashigawa
- 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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Great Git resources
- Next by Date: Re: [tlug] [announcement] 2011-02-19 Technical meeting.
- Previous by thread: Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- Next by thread: Re: [tlug] Are ordered hashes useful?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links