[nem-en] Extension methods

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Jan 31 22:10:33 CET 2006


Kamil Skalski <kamil.skalski w gmail.com> writes:

> Hm, but it IS a little bit strange that Equals requires any of Equals
> to return true OR hashcodes to be equal. I don't know which spec are
> you referring to, but IMHO it was ment to be Equals --> true AND
> hashcodes equal.

In a sensible class equal values imply equal hashcodes. There is
no reason to check the hashcode at all; if a spec requires it,
it's stupid.

But we would have to see what exactly does it require.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak w knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/



More information about the devel-en mailing list