in reply to Why doesn't % interpolate?

Another problem with interpolating hashes that hasn't been mentioned yet is that it would be non-deterministic. Arrays will always return the same values, regardless of what order they were put on. (Using unshift vs. push vs. splice vs. assignment vs. etc ...) However, the same cannot be said for hashes.

Also, adding 1..10 to an array vs. 11..20 will still return them in a predictable (a < b) order. Doing that for a hash will not return a predictable ordering.

This matters for testing purposes - I now cannot depend on interpolation to always give me repeatable answers for testing. But, the only thing I can't depend on is hashes. Try explaining that to a newbie.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.