3 ms·
Technically you don't even need both '<' and '=='. Just '<=' will do if you follow the mathematical definitions (i.e. a <= b and b <= a implies a == b). This is
by contravariant 7y ago
Technically you don't even need both '<' and '=='. Just '<=' will do if you follow the mathematical definitions (i.e. a <= b and b <= a implies a == b). This is not always the most efficient, but it's not the worst option.
- aw1621107 7y agoAh, you're right. I don't see programmers defining the operators that way very frequently for one reason or another, but perhaps I just need to be exposed to more code bases.