shieldforyoureyes wrote:Shift-8, duh.
What the heck kind of keyboard is that?
I'm partial to != not because I think it's logical, but because it doesn't really have any other meanings assigned to it that can get mixed up with the intended meaning.
That's the real reason (I think) why the != for inequality, == for equality, := for assignment makes sense. None of these is likely to get confused with something else.
Or, y'know, we could use <> for inequality, <- to read the next line from a file, = for equality testing, < to assign, > for greater-than, -lt for less than, <= for less than or equal to, and -ge for greater than or equal to.
And while we're at it let's use ^ for pointers, * for exponentiation, and x for multiplication. Then we can use + for concatenation, - for logical inverse, # for addition, v for OR, and /\ for AND. Yay!