Re: about Equals and GetHashCode
- From: Brian Gideon <briangideon@xxxxxxxxx>
- Date: Thu, 12 Jun 2008 19:41:32 -0700 (PDT)
On Jun 12, 6:51 pm, "Peter Duniho" <NpOeStPe...@xxxxxxxxxxxxxxxx>
wrote:
You could still multiply the 0 by 37 in the first field incorporated,
preserving the symmetry aspect. I just don't see the point in starting
with 17 versus 0. It has the sense of "magic" about it, but unlike the
multiplication by 37, I don't see any practical advantage. A less
"magical" initializer of 0 would be just as good.
I think. :)
Pete
It does seem like magic doesn't it? But, then again mathematics is
full intriguing quirks so it wouldn't surprise me if there was a valid
reason.
It reminds of me of the section in Knuth Vol 2 where he talks about
random number generators and warns that using one random number
generator to seed another generator may actually make the end result
*less* random! I know...completely off topic. My mind works in
mysterious ways :)
.
- Follow-Ups:
- Re: about Equals and GetHashCode
- From: Peter Duniho
- Re: about Equals and GetHashCode
- References:
- about Equals and GetHashCode
- From: Tony Johansson
- Re: about Equals and GetHashCode
- From: Marc Gravell
- Re: about Equals and GetHashCode
- From: Marc Gravell
- Re: about Equals and GetHashCode
- From: Tony Johansson
- Re: about Equals and GetHashCode
- From: Jon Skeet [C# MVP]
- Re: about Equals and GetHashCode
- From: Tony Johansson
- Re: about Equals and GetHashCode
- From: Jon Skeet [C# MVP]
- Re: about Equals and GetHashCode
- From: Brian Gideon
- Re: about Equals and GetHashCode
- From: Peter Duniho
- Re: about Equals and GetHashCode
- From: Jon Skeet [C# MVP]
- Re: about Equals and GetHashCode
- From: Peter Duniho
- about Equals and GetHashCode
- Prev by Date: Re: about Equals and GetHashCode
- Next by Date: RE: Profile Object Issue
- Previous by thread: Re: about Equals and GetHashCode
- Next by thread: Re: about Equals and GetHashCode
- Index(es):
Relevant Pages
|