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, 8 Feb 2011 13:49:36 +0100
- From: Josh Glover <jmglov@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>
On 8 February 2011 11:38, Stephen J. Turnbull <stephen@example.com> wrote: > 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. > > Do you know of any use cases for it? I've never needed it myself, in any language I've used, but I suppose it might be useful if you needed to guarantee the order of hash keys across multiple runs of your program. The order is likely to be the same anyway, but it seems wrong to rely on that. -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Marty Pauley
- 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
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [announcement] 2011-02-19 Technical meeting.
- Next by Date: Re: [tlug] [Javascript] Shouldn't there be a sort option on objects [SOLVED]
- Previous by thread: [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