@rustlang I'm having some issues when trying to use f64 as other types, as in, lacking Eq disables the use of hashsets. Any good workaround?
-
-
Replying to @Saikyun
second. Search should show them. But that's the basic strategy; wrap in a newtype and decide what to do for NaN == NaN
2 replies 0 retweets 0 likes -
-
Replying to @Saikyun
yeah, unfortunately, this is the exact things static types are designed to not let you implement!
1 reply 0 retweets 0 likes -
Replying to @rustlang
how do they solve this kind of stuff in C? Just hope that it's never NaN? It's an interesting but annoying problem.
2 replies 0 retweets 0 likes
Replying to @Saikyun
C doesn't have generic types at all, so it's not directly comparable, no pun intended . Without generic containers, you then
2:33 PM - 15 Aug 2016
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.