Comment Re:Wrong (Score 2, Insightful) 1268
True enough about BASIC.
However one of the worst design flaws in C is the combination of using = as the assignment operator together with the liberal interpretation of what constitutes an expression. How many lifetimes have cumulatively been wasted because some tired programmer wrote "if (x = y) ..." and the compiler raised no objection? Let's be honest, C is the king of side-effects.
In a sane language, = would not be used as an operator at all, neither for assignment nor equality test. Neither is what the symbol means in a mathematical equation, and allowing it for either is asking for trouble.
In a sane language, = would not be used as an operator at all, neither for assignment nor equality test. Neither is what the symbol means in a mathematical equation, and allowing it for either is asking for trouble.