Announcing E 0.8.4: The Birthday Release
Dean Tribble
tribble@agorics.com
Thu, 27 May 1999 19:26:55 -0700
At 08:09 PM 5/27/99 -0400, Tyler Close wrote:
>> Is there some semantic trouble we would get into by adding an
>> 'implementsSameMapping' method (feel free to substitute a better name)
>> to the table protocol?
>
>It would be hell on wheels to implement. If you want to do comparisons like
>that you should be using a binary tree and not a hashtable.
Wouldn't it just be (in pseudocode for two maps, A and B)
if a count != B count
return false
foreach k in A keys
if A[k] != B[k]
return false
return true