[Haskell-cafe] How to check object's identity?
ketil at malde.org
Sun Jan 4 18:31:14 EST 2009
Aaron Tomb <atomb at galois.com> writes:
> As others have explained, the == operator doesn't tell you whether two
> values are actually stored at the same location in memory.
Nobody yet mentioned that (==) doesn't guarantee *anything* - it's a
user defined function. So while it may and should give structural
equality, it also may not.
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe