Oh, say, can you 'C'?

why is = an assignment and == a comparison?
...
I learned using pascal, where assignment was := so that you wouldn't get it confused with =.

Why is := an assignment and = a comparison? I've learned using C, where assignment was = so that you wouldn't get it confused with ==.

Sheesh...


And really, who in their right mind before playing in this screwed up syntax actually thought of || as meaning or? What's wrong with the word or?

And while we're at it.. who would use { and }? What's wrong with the words 'begin' and 'end'?


What's the difference between a struct and a class?

'struct' is part of the C language whereas 'class' is not?


And supersetism is the only reason why 'if(a = b)' returns true instead of a useful "the programmer is an idiot" error.

Actually the expression (a=b) evaluates to true if and only if the value of 'b' is not 0, otherwise it evaluates to false.


I'm not saying that C is the best language out there. (not to speak of C++) It has its disadvantages, but it also has its advantages. (compared to [insert your programming language here])

Sargon
 
Back
Top