
20 Aug
2014
20 Aug
'14
3:09 a.m.
Hi Johan,
Haskell does not support referential equality, as that would break
referential transparency.
http://stackoverflow.com/questions/1717553/pointer-equality-in-haskell
Cheers
On Aug 20, 2014 7:52 AM, "Johan Holmquist"
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe