3 ms·
Of course you can do that, but I would say that doing so defensively for every operation is way more verbose and unwieldy than you'd want. Much simpler to just
by masklinn 5y ago
Of course you can do that, but I would say that doing so defensively for every operation is way more verbose and unwieldy than you'd want.
Much simpler to just toggle on the relevant flag.
- eyelidlessness 5y agoI 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.
- masklinn 5y ago> 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, ...).
- eyelidlessness 5y ago> But surely that's almost never the case? Which is why it’s not so impractical to make an occasional exception.