Wouldn't almost everyone regard hash tables with floating point keys as being a broke thing to do to start with?
e
ephemient
05/29/2023, 8:27 PM
in some languages yes, but the behavior is well-defined in Java (and Kotlin)
n
Nir
05/29/2023, 8:29 PM
I don't think it's generally regarded as broken "in some languages", but just generally a fundamentally broken thing to do, given how weak the guarantees around floating point arithmetic actually are
Nir
05/29/2023, 8:30 PM
at any rate seems like a poor trade-off to me but thanks for explaining the reason