News for hackers. Stuff that matters.
Re:Almost Always Unsigned by eyelidlessness on Sunday January 02, 2022 @11:39AM (#29770201)
I think GP was saying you can do that when you expect that the general case doesn’t need to be checked but a specific case does.
Re:Almost Always Unsigned by masklinn on Sunday January 02, 2022 @11:54AM (#29770387)
> when you expect that the general case doesn’t need to be checked but a specific case does.

But surely that's almost never the case? Few programs actually desire or care for base 2 modular arithmetics, and when they do it tends to be for very specific tasks (usually cryptographic or cryptography-adjacent e.g. hashing, checksumming, ...).

Re:Almost Always Unsigned by eyelidlessness on Sunday January 02, 2022 @01:12PM (#29771637)
> But surely that's almost never the case?

Which is why it’s not so impractical to make an occasional exception.