In article <117ophj$3il1$[email protected]>,
Keith Thompson <[email protected]> wrote:
...
If I were creating a new language, I might use ":=" for assignment
and "==" for comparison. I'd use "==" rather than "=" only to
cater to programmers accustomed to C and the languages it influences.
And I'd discuss that language elsewhere.
Note that another way to solve this problem is simply to not allow assignments to be expressions. This has been suggested at various
times in the past on this newsgroup.
The fact that assignments are expressions is one of the nifty
features of C (and C-like) language(s) and allows for nifty,
clever, compact code that is dazzling to the eye (and confusing
to the newbie). [...]
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,142 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 135:31:00 |
| Calls: | 14,707 |
| Calls today: | 1 |
| Files: | 186,498 |
| D/L today: |
1,123 files (344M bytes) |
| Messages: | 2,552,863 |