The “!=” comes from most programming languages using the “!” character for negation. Negating something is usually read and pronounced “not”. So it literally reads “not equal” if you are reading the symbols.
And programming languages get it from math, where “inequality” is represented by the symbol “≠”, != is the closest you can get with ASCII.
Now what’s more interesting is that math uses “¬” to represent “not”, I bet there’s a telegraph keyboard from the 1940s that explains the reasons behind all this.
And programming languages get it from math, where “inequality” is represented by the symbol “≠”,
!=
is the closest you can get with ASCII.Now what’s more interesting is that math uses “¬” to represent “not”, I bet there’s a telegraph keyboard from the 1940s that explains the reasons behind all this.