[MLton] Re: [MLton-commit] r5662
Vesa Karvonen
vesa.a.j.k at gmail.com
Thu Jun 21 11:49:21 PDT 2007
OTOH, suppose that you wish to serialize a data structure containing
reals and maximize sharing during serialization. If you use Real.==
to compare reals for equality, then the treatment of NaNs and signed
zeroes means that
deserialize (serialize x) = x
no longer holds.
-Vesa Karvonen
On 6/21/07, Henry Cejtin <henry.cejtin at sbcglobal.net> wrote:
> If you use bitwise equals for reals then NANs and signed zeros would do the
> wrong things, which I think would be pretty bad.
More information about the MLton
mailing list