3 ms·
I would hate to have to debug a scenario where this type of comparison gives an incorrect result. I seem to remember the early days of Java where hashCode for
by arethuza 8y ago
I would hate to have to debug a scenario where this type of comparison gives an incorrect result.
I seem to remember the early days of Java where hashCode for string only looked at the first few characters - which had amusing results when storing URLs.
- sametmax 8y agoWell, I'm sure it can't be worse than debugging a code using == instead of ===: at least you can look at the implementation :)