[Haskell-cafe] Does GHC compare pointers when eval'ing (==)
alois.cochard at gmail.com
Wed Aug 20 07:09:02 UTC 2014
Haskell does not support referential equality, as that would break
On Aug 20, 2014 7:52 AM, "Johan Holmquist" <holmisen at gmail.com> wrote:
> Comparing two structures for equality (structurally) can be expensive. But
> if their references are the same they would for sure be equal (unless (==)
> was defined in some funny way). Does GHC perform any such optimization?
> (Likely a question for another list but I make a stab here first. )
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe