NaN, Scala's "clever" == and autoboxing interact quite badly with each other. :(
-
-
-
-
Replying to @pedrofurla
@pedrofurla@propensive@d6 same in Haskell with Set.fromList [0.0/0.0, 0.0/0.0]. Yay IEEE!1 reply 0 retweets 0 likes
Replying to @relrod6
@relrod6 @pedrofurla @d6 In Scala/Java, 0.0/0.0 != 0.0/0.0. Fine.
But we also get Double.box(0.0/0.0) == Double.box(math.sqrt(-1.0)).
4:22 AM - 5 Mar 2014
from New York, NY
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.