4 ms·
I essentially do not use int short, long, long long at all. Frankly I think those were a terrible mistake and people should avoid using them.
by Gibbon1 3y ago
I essentially do not use int short, long, long long at all. Frankly I think those were a terrible mistake and people should avoid using them.
- WalterBright 3y agoAnybody who uses "int short" should be keel-hauled. That nonsense did not make its way into D!
- Gibbon1 3y agoThe lack of memory safe casts drives me a bit batty. You would think casting something as signed or unsigned wouldn't promote to a int / unsigned int. Ditto for const and unconst.
- WalterBright 3y agoWhen the first C++ Standard (C89) was being created, about half the compilers implemented "sign preserving" semantics, which is what you're advocating, and the other half implemented "value preserving" semantics. A great battle ensued, and many champions were slain. The value preserving folks carried the field, and the sign preserving folks changed their compilers.