"be consistent" | |
PerlMonks |
Re^5: What makes an array sorted and a hash unsorted?by Roy Johnson (Monsignor) |
on Jun 01, 2009 at 18:07 UTC ( [id://767343]=note: print w/replies, xml ) | Need Help?? |
"Hashes are not sorted the way you think they are sorted" would be correct today as well as with your change. However, it is also (theoretically) possible to implement hashes that retain an order unrelated to their keys. If that were implemented, it would "help", and so the problem is that hashes are unsorted -- in that way.
I still contend that it is the language that makes them unsorted. It is not merely how we use them. Order has to be imposed externally on the data. There is no intrinsic ordering. Caution: Contents may have been coded under pressure.
In Section
Meditations
|
|