Hacker News new | ask | show | jobs
by privong 2751 days ago
> is there really a distinction between ‘>’ and ‘<‘? Is only one really the ‘greater’ than sign?

The convention I've always seen is that `>` is "greater than" and `<` is "less than". Reading from left to right `x > 2` is "x is greater than 2" and `2 < x` is "2 is less than x". Functionally the same, yes, but with a distinction in the way the comparison is done (reading left to right). So with a preferred/dominant reading direction I would consider them different. This would be important if reading/describing a line of code to someone where it might be read/written left to right.

I don't know if the names are reversed in languages that are read right to left?

1 comments

By convention, math is always left to right regardless of the direction of the script it's in, so presumably the operators do the same.