2 ms·
Types are meaningful. At least to me, the discovery would have been to be mindful of your types when invoking idioms you've learned.
by pharrington 7y ago
Types are meaningful. At least to me, the discovery would have been to be mindful of your types when invoking idioms you've learned.
- BeeOnRope 7y agoAgreed, but it is especially insidious here because for integer literals like 0 or 1, etc - it is common to simply assign or pass those directly to other integer types, and 99% of the time, C++ does the right thing. Here it still does the right thing in that the code is correct, but you walk off a performance cliff.