![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Even with that change, I think we'll still get EXACTLY the same questions we get today. People want custom ordering of keys when dealing with hashes (as opposed to custom ordering of values when dealing with arrays). So if your claim is true, that means the answer we currently give ("hashes are unsorted") is wrong because the hashes being sorted wouldn't help at all. I actually believe that hash are unsorted, and I believe the answer we are giving is right.
Exactly. It's how we use hashes that makes them unsorted. The keys are actually part of the value, and thus can't be used for ordering. In reply to Re^4: What makes an array sorted and a hash unsorted?
by ikegami
|
|