[OT] The Usual Arithmetic Confusions
Elronnd
elronnd at elronnd.net
Mon Jan 31 09:48:42 UTC 2022
On Monday, 31 January 2022 at 08:38:28 UTC, Ola Fosheim Grøstad
wrote:
> Not if you work around it
Maybe I was insufficiently clear. I'm not talking about the case
where you work around it, but the case where you leave the 'dead'
code in..
> but ask yourself: is it a good idea to design your language
> in such a way that the compiler is unable to remove this
If you use modular arithmetic, then yes, you should not permit
the compiler to remove that condition.
More information about the Digitalmars-d
mailing list