|
|
|
|
|
by MaxBarraclough
2904 days ago
|
|
Presumably that's why they've gone with the far more sensible ":=" syntax. The use of "=" for assignment has long been a pet peeve of mine. It was a mistake when C did it, and it's been a mistake for so many subsequent languages to copy it. "=" shouldn't be an operator at all, it makes a lot more sense to use ":=" and "==". Pascal's use of ":=" for assignment and "=" for equality, strikes me as almost as clear. Still, at least C makes consistent use of '=' for assignment, unlike that god-forsaken trainwreck of a language, VB.Net, which uses it for both assignment and for equality depending on context. |
|