Re:Don't use the greater than sign in programming
by dfan on Monday February 22, 2016 @09:55AM
(#11151131)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.