Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You have not yet imagined a reason, and neither have I. That doesn't mean one doesn't exist. Likely it would be something idiosyncratic involving legacy code that would only make sense in a real world context - "we have to change the way it sorts to fix ticket ABC123, but we can't change the equality, or we'll have a regression of ABC456."


Then provide a comparator to sort differently, no problem.

There will never be a good reason for the spec to be like that. Just look how people here justify the mess of BigDecimal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: