[Haskell-cafe] pointer equality
wren ng thornton
wren at freegeek.org
Wed Jul 20 23:42:38 CEST 2011
On 7/20/11 5:08 PM, Paul Johnson wrote:
> I would have thought that the compiler, as a matter of optimisation,
> could insert a check to see if (==) is comparing an object with itself.
> The only way I can see this breaking is with perverse instances of Eq
> that would return False for "f == f".
Like the instance for Double (where f = NaN)?
--
Live well,
~wren
More information about the Haskell-Cafe
mailing list