News for hackers. Stuff that matters.
Re:Go 1.21 by philosopher1234 on Wednesday June 21, 2023 @04:59PM (#36424385)
One aspect of this is that it was formerly impossible to delete NaNs from a map[float64]T, unless you had the nan already.
Re:Go 1.21 by earthboundkid on Wednesday June 21, 2023 @09:55PM (#36427137)
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.