The wonders of C (=/==)

Bopsi ChandraMouli mouli at cavell.UUCP
Fri Mar 29 11:02:29 AEST 1985


In article <1401 at ut-sally.UUCP> riddle at ut-sally.UUCP (Prentiss Riddle) writes:
>> It seems to me that the normally-cited "save keystrokes" reason for
>> the =/== choice cannot be correct...
>
>Wasn't "==" chosen for its obvious analogy to "!=", "<=", and ">=" ?
>That's what I've always assumed, at least.

 The "obvious" analogy goes like this.   :=)
   
     <=  -- less than OR equal 
     >=  -- Greater than OR equal 
     !=  -- not OR equal   (not quite right!) 
     ==  -- equal OR equal                  
                  or more appropriately
            assign OR assign

---------------------------------------
ihnp4!alberta!cavell!mouli



More information about the Comp.lang.c mailing list