Sujet : Re: on changing paradigm of assign call
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 02. Sep 2024, 03:45:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb35b0$1qeok$1@dont-email.me>
References : 1
User-Agent : Pan/0.160 (Toresk; )
On Sun, 01 Sep 2024 16:15:37 +0200, fir wrote:
int x = foo()
annoying is especially this "=" sign as this is not quite assignment
imo
The original symbol as used in Algol-like languages was “:=”. While C
copies quite a few features from the Algol family, it made the
questionable decision to shorten the assignment operator to “=”,
ostensibly to save typing. Which meant they had to invent a different
symbol, “==”, to denote an equality comparison.