If I wanted to find every usage of `MyType#equals` in my codebase (because I want to replace it with `Eq`) what would be a good way to do that?
Yes, those are problematic cases I was aware of. Incidentally, my problem arose because `Ordering#compare` was being used to determine "equality" in a `SortedSet`. One solution is to wrap values in another type before insertion into the set/map, but it has its own problems.
-
-
The more desirable solution, perhaps, would be to use a different collection type which knows about `Eq`. But there's not much appetite for that...
-
I'm mostly trying to find out how bulletproof you want that solution to be
End of conversation
New conversation -
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.