[squeak-dev] Comparing collections, default behavior?
siguctua at gmail.com
Fri Feb 4 16:06:56 UTC 2011
Since Collection includes #difference: protocol,
i just thought that the default equality could be expressed like following:
^ (self difference: otherCollection) isEmpty
In other words, if two things having no differences, then they are equal. No? :)
Igor Stasenko AKA sig.
More information about the Squeak-dev