On Sat, 11 Jul 2015 01:51:41 +0000, Vladimir Panteleev wrote: >> giving that `int` and `uint` are freely interchangeable... `uint` is >> better, as it allows only one bound check in `if`, and without casts. >> ;-) > > That's a poor reason. Optimizing x>=0 && x<100 to an unsigned check is > such a basic optimization, even DMD can do it.
but `if (x < 100)` is less typing than `if (x >= 0 && x < 100)`!
signature.asc
Description: PGP signature
