4 ms·
I picked up the "always use the less-than sign when you're comparing" rule of thumb from something written by Bjarne Stroustrup, though I can't find an online r
by dfan 11y ago
I picked up the "always use the less-than sign when you're comparing" rule of thumb from something written by Bjarne Stroustrup, though I can't find an online reference to cite. I don't always do it for single comparisons, but I do whenever there are multiple ones such as checking for whether a value is in a certain range.