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

Yep, BigDecimal does this crazy thing, and it shouldn't. It does it, because the buggy spec allows it.

If the canonical equality you want to provide is not compatible with the canonical order you want to provide, then don't provide the canonical order. Or provide an order that is compatible, which makes it pretty much canonical. It is really simple, and going against simple things like that is why software is such a mess. Because software really allows you to do anything you want. And now it is down to you to want the right thing.



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

Search: