Laws for Show and Read?

Sven Panne svenpanne at gmail.com
Wed Jun 5 21:14:51 UTC 2019


Am Mi., 5. Juni 2019 um 22:57 Uhr schrieb Bertram Felgenhauer via Libraries
<libraries at haskell.org>:

> [...] It's true that extra information in NaNs is lost, but they all behave
> the same anyway...
>

That's true for normal arithmetic with them, but wrong if you use e.g. an
external library which encodes things into the sign bit/paylod of NaNs (see
e.g. NaN tagging). In the latter case, "read . show" actively destroys
necessary information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20190605/02b555a0/attachment.html>


More information about the Libraries mailing list