Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #403177
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: = vs. == (again!) (Was: c needs this sign) |
| Date | Wed, 14 Oct 2026 23:36:19 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 26 |
| Message-ID | <86jynjqxlo.fsf@linuxsc.com> (permalink) |
| References | <117mfle$3aage$1@dont-email.me> <117om5f$2eem$1@dont-email.me> <117on5c$2qpg$1@dont-email.me> <117ophj$3il1$1@kst.eternal-september.org> <117p6mi$229km$1@news.xmission.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Date | Thu, 15 Oct 2026 06:36:22 +0000 (UTC) |
| Injection-Info | dont-email.me; logging-data="2272892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183bXLh094vTgksEUF68ofALvHcJSlLZI4="; posting-host="8e248dd53a94b2a901695ff9f1057f0e" |
| User-Agent | Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) |
| Cancel-Lock | sha1:PrOGheRo/BTRDik4CDqHhynQnnM= sha1:yPuSgPfCpDvCliY/dbpio17jWtk= sha256:GBztAtIYEvFl7PuTEVk2w6L0p1WUZRvE4yVJThL2s6w= sha1:O/DbAd4UDkVnzXZP/Q8H6T+6VxU= sha256:oTHRdmVEwaoUWwPS4N0u4DDfhCRWrFR+fH/NHwGHRCY= |
| Xref | csiph.com comp.lang.c:403177 |
Show key headers only | View raw
gazelle@shell.xmission.com (Kenny McCormack) writes: > In article <117ophj$3il1$1@kst.eternal-september.org>, > Keith Thompson <Keith.S.Thompson+u@gmail.com> 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). [...] They also can be used in ways that are straightforward, not hard to understand, and not confusing to new programmers. Like most aspects of programming languages, using assignment expressions effectively requires a certain amount of taste and good judgment. If every potentially confusing language feature were thrown out there would be almost nothing left.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
c needs this sign fir <profesor.fir@gmail.com> - 2026-09-07 15:53 +0200
Re: c needs this sign David LaRue <huey.dll@tampabay.rr.com> - 2026-09-07 19:21 +0000
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-08 01:10 +0200
Re: c needs this sign Dan Purgert <dan@djph.net> - 2026-09-07 23:13 +0000
Re: c needs this sign Lane W <cactus_DAC@yahoo.com> - 2026-09-07 17:26 -0600
Re: c needs this sign David Brown <david.brown@hesbynett.no> - 2026-09-08 10:40 +0200
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 10:49 +0200
Re: c needs this sign David Brown <david.brown@hesbynett.no> - 2026-09-09 13:21 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-09 13:33 +0200
Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 21:37 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-10 09:01 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-10 23:13 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 14:54 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) scott@slp53.sl.home (Scott Lurndal) - 2026-09-10 22:17 +0000
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 15:48 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) bart <bc@freeuk.com> - 2026-09-11 10:51 +0100
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-11 12:49 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) scott@slp53.sl.home (Scott Lurndal) - 2026-09-11 16:28 +0000
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-11 02:03 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-10 17:13 -0700
Re: Support of Unicode characters in various places (was Re: c needs this sign) Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-11 02:24 +0200
Re: Support of Unicode characters in various places (was Re: c needs this sign) David Brown <david.brown@hesbynett.no> - 2026-09-11 09:42 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-09 23:59 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:04 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:16 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:30 +0200
Re: c needs this sign bart <bc@freeuk.com> - 2026-09-09 23:44 +0100
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 00:55 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:09 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:21 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:36 +0200
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-10 01:45 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-15 07:23 +0000
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 11:56 +0200
Re: c needs this sign bart <bc@freeuk.com> - 2026-09-08 11:14 +0100
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 12:28 +0200
Re: c needs this sign Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-09-08 03:54 -0700
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 13:13 +0200
= vs. == (again!) (Was: c needs this sign) gazelle@shell.xmission.com (Kenny McCormack) - 2026-09-08 14:39 +0000
Re: = vs. == (again!) (Was: c needs this sign) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2026-10-14 23:36 -0700
Re: c needs this sign Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-09-09 11:13 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-09 00:29 +0000
Re: c needs this sign "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-09-10 13:42 -0700
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 15:12 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-08 03:33 +0000
Re: c needs this sign fir <profesor.fir@gmail.com> - 2026-09-08 12:02 +0200
Re: c needs this sign Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-09-09 00:27 +0000
csiph-web