Y
Hacker News
new
|
ask
|
show
|
jobs
by
philosopher1234
1098 days ago
One aspect of this is that it was formerly impossible to delete NaNs from a map[float64]T, unless you had the nan already.
1 comments
earthboundkid
1098 days ago
Even with the NaN, the NaN wasn't equal to itself, so it still wouldn't delete. Really, they just should have forbidden float64 key'd maps, but too late for that, I guess.
link