[cdr-discuss] EQUALS, COMPARE and HASH-CODE
Willem Broekema
metawilm at gmail.com
Wed Mar 2 13:00:58 UTC 2011
On Wed, Mar 2, 2011 at 9:44 AM, Marco Antoniotti <marcoxa at cs.nyu.edu> wrote:
> New version with most egregious mistakes corrected.
Thanks for the fixes on the points I raised.
I'm feeling like I miss the use case for EQUALS. The document states:
"... while writing algorithms and libraries it would be useful to have
"hooks" in the type and class system allowing for the definition of
extensible equality and comparison tests."
If an algorithm does comparison operations, then the interface should
accept a :test argument. Where does EQUALS come into play? I'm
interested in an example.
Thanks,
- Willem
More information about the cdr-discuss
mailing list