3 ms·
Perhaps it's C that is weird for confusingly allowing you to assign within a logical expression. At least clang (and possibly other compilers) warn you because
by musicale 8y ago
Perhaps it's C that is weird for confusingly allowing you to assign within a logical expression. At least clang (and possibly other compilers) warn you because they assume you meant to write '=='.
(Dartmouth BASIC required a LET keyword, Kemeny and Kurtz being mathematicians after all. Bill Gates might have made it optional in Microsoft BASIC to save typing and possibly one byte of memory.)
I sort of miss Smalltalk's left-arrow though.