Wouldn't it make more sense if the = operator tested for equality and == assigned? Since == is repeated and more emphatic?
Name:
Anonymous2009-06-08 3:30
The correct answer is = should be used for comparison and assignment.
The function of the operator can be determined by its context, so it should be determined by its context.
Regardless of using a lagnauge that uses = and ==, good programming practice dicates the context in which these should be used anyways, so having seperate operators invites errors and is a lazy way shitheads write parsers.