Re: Regarding assignment to struct

Liste des GroupesRevenir à cl c 
Sujet : Re: Regarding assignment to struct
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.c
Date : 22. Dec 2025, 13:40:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86cy46sn99.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Andrey Tarasevich <noone@noone.net> writes:

On Wed 5/7/2025 12:37 AM, David Brown wrote:
>
That would get an immediate downcheck during review for exactly
that reason.
>
Of course.  In fact, if someone presented such code for review (and
assuming I noticed the commas!)  I'd have to consider whether it was
done maliciously, intentionally deceptively, due to incompetence, or
smart- > arse coding.  In all my C coding experience, I can't recall
ever coming across a single situation when I thought the use of the
comma operator was appropriate in the kind of code I work with.
>
Wow!  That's catastrophically bad.
>
As it has been stated many times before, both C and C++ are
programming languages that embrace both statement-level and
expression-level programming.  Expression-level programming
(e.g. where ?:` is used for branching and `,` for sequencing) is a
very valuable and massively important programming paradigm in these
languages.  The fact that elaborate expression-level programming is
not in nay way abandoned or shunned today is pretty obvious in C++,
since C++ took major steps lately to develop its expression-level
capabilities.  But it has always been and will always remain
important in C as well.
>
The proclivity to stick exclusively to statement-level programming
in C and, God forbid, impose it in others through so called "code
reviews"... that would be a trait specific to "sweatshop"
development outfits, which strive to replace quality with quantity.
I'd agree that in a revolving door employment environment relying on
a large number of low-competence developers such code might be seen
as "too confusing".  But I don't see why we should set our standards
that low here, in `comp.lang.c`.

What's interesting is that the arguments given opposing what might
be called expression-level programming have been sociological rather
than technical.

Date Sujet#  Auteur
2 May 25 * Regarding assignment to struct103Lew Pitcher
2 May 25 +- Re: Regarding assignment to struct1Keith Thompson
2 May 25 +* Re: Regarding assignment to struct13Barry Schwarz
2 May 25 i`* That depends... (Was: Regarding assignment to struct)12Kenny McCormack
3 May 25 i `* Re: That depends... (Was: Regarding assignment to struct)11Lew Pitcher
3 May 25 i  +- Re: That depends... (Was: Regarding assignment to struct)1Lawrence D'Oliveiro
3 May 25 i  +- Re: That depends... (Was: Regarding assignment to struct)1Janis Papanagnou
3 May 25 i  +* Re: That depends... (Was: Regarding assignment to struct)5Kaz Kylheku
3 May 25 i  i+* Re: That depends... (Was: Regarding assignment to struct)3Kaz Kylheku
5 May 25 i  ii`* Re: That depends... (Was: Regarding assignment to struct)2Janis Papanagnou
5 May 25 i  ii `- Re: That depends... (Was: Regarding assignment to struct)1Kaz Kylheku
4 May 25 i  i`- Re: That depends... (Was: Regarding assignment to struct)1Tim Rentsch
3 May 25 i  +- Re: That depends... (Was: Regarding assignment to struct)1James Kuyper
4 May 25 i  `* Re: That depends... (Was: Regarding assignment to struct)2Tim Rentsch
4 May 25 i   `- Re: That depends... (Was: Regarding assignment to struct)1Lew Pitcher
2 May 25 +* Re: Regarding assignment to struct2Waldek Hebisch
3 May 25 i`- Re: Regarding assignment to struct1Lew Pitcher
3 May 25 +* Re: Regarding assignment to struct70Andrey Tarasevich
3 May 25 i+* Re: Regarding assignment to struct9Lawrence D'Oliveiro
4 May 25 ii`* Re: Regarding assignment to struct8Keith Thompson
4 May 25 ii `* Re: Regarding assignment to struct7James Kuyper
4 May 25 ii  +- Re: Regarding assignment to struct1Kenny McCormack
4 May 25 ii  +- Re: Regarding assignment to struct1David Brown
4 May 25 ii  `* Re: Regarding assignment to struct4Keith Thompson
5 May 25 ii   +- Re: Regarding assignment to struct1James Kuyper
5 May 25 ii   +- Re: Regarding assignment to struct1Keith Thompson
6 May 25 ii   `- Re: Regarding assignment to struct1Tim Rentsch
3 May 25 i+- Re: Regarding assignment to struct1Lawrence D'Oliveiro
4 May 25 i`* Re: Regarding assignment to struct59Tim Rentsch
5 May 25 i `* Re: Regarding assignment to struct58Andrey Tarasevich
5 May 25 i  +* Re: Regarding assignment to struct33Michael S
5 May 25 i  i+* Re: Regarding assignment to struct31Andrey Tarasevich
5 May 25 i  ii`* Re: Regarding assignment to struct30Michael S
5 May 25 i  ii +- Re: Regarding assignment to struct1Tim Rentsch
5 May 25 i  ii `* Re: Regarding assignment to struct28Andrey Tarasevich
5 May 25 i  ii  +* Re: Regarding assignment to struct4Michael S
6 May 25 i  ii  i+- Re: Regarding assignment to struct1Tim Rentsch
29 May 25 i  ii  i+- Re: Regarding assignment to struct1Andrey Tarasevich
29 May 25 i  ii  i`- Re: Regarding assignment to struct1James Kuyper
5 May 25 i  ii  `* Re: Regarding assignment to struct23Keith Thompson
6 May 25 i  ii   +* Re: Regarding assignment to struct4Tim Rentsch
6 May 25 i  ii   i`* Re: Regarding assignment to struct3Keith Thompson
2 Mar 26 i  ii   i `* Re: Regarding assignment to struct2Tim Rentsch
2 Mar 26 i  ii   i  `- Re: Regarding assignment to struct1Keith Thompson
6 May 25 i  ii   +* Re: Regarding assignment to struct3David Brown
29 May 25 i  ii   i`* Re: Regarding assignment to struct2Andrey Tarasevich
29 May 25 i  ii   i `- Re: Regarding assignment to struct1David Brown
6 May 25 i  ii   +* Re: Regarding assignment to struct13Waldek Hebisch
6 May 25 i  ii   i+* Re: Regarding assignment to struct8David Brown
7 May 25 i  ii   ii`* Re: Regarding assignment to struct7David Brown
29 May 25 i  ii   ii `* Re: Regarding assignment to struct6Andrey Tarasevich
29 May 25 i  ii   ii  +- Re: Regarding assignment to struct1Janis Papanagnou
29 May 25 i  ii   ii  +* Re: Regarding assignment to struct3David Brown
29 May 25 i  ii   ii  i+- Re: Regarding assignment to struct1Keith Thompson
30 May 25 i  ii   ii  i`- Re: Regarding assignment to struct1David Brown
22 Dec 25 i  ii   ii  `- Re: Regarding assignment to struct1Tim Rentsch
6 May 25 i  ii   i+- Re: Regarding assignment to struct1Keith Thompson
29 May 25 i  ii   i`* Re: Regarding assignment to struct3Andrey Tarasevich
29 May 25 i  ii   i +- Re: Regarding assignment to struct1Janis Papanagnou
7 Jun 25 i  ii   i `- Re: Regarding assignment to struct1Tim Rentsch
29 May 25 i  ii   `* Re: Regarding assignment to struct2Andrey Tarasevich
29 May 25 i  ii    `- Re: Regarding assignment to struct1Keith Thompson
5 May 25 i  i`- Re: Regarding assignment to struct1Tim Rentsch
5 May 25 i  +* Re: Regarding assignment to struct4Keith Thompson
5 May 25 i  i`* Re: Regarding assignment to struct3Andrey Tarasevich
8 May 25 i  i `* Re: Regarding assignment to struct2Tim Rentsch
8 May 25 i  i  `- Re: Regarding assignment to struct1David Brown
5 May 25 i  +* Re: Regarding assignment to struct17Keith Thompson
5 May 25 i  i+* Re: Regarding assignment to struct6Michael S
5 May 25 i  ii+- Re: Regarding assignment to struct1Kenny McCormack
5 May 25 i  ii+* Re: Regarding assignment to struct3Keith Thompson
5 May 25 i  iii`* Re: Regarding assignment to struct2Kaz Kylheku
6 May 25 i  iii `- Re: Regarding assignment to struct1Tim Rentsch
6 May 25 i  ii`- Re: Regarding assignment to struct1Tim Rentsch
5 May 25 i  i`* Re: Regarding assignment to struct10Tim Rentsch
5 May 25 i  i `* Re: Regarding assignment to struct9Keith Thompson
6 May 25 i  i  +* Re: Regarding assignment to struct6Nick Bowler
6 May 25 i  i  i`* Re: Regarding assignment to struct5Keith Thompson
7 May 25 i  i  i `* Re: Regarding assignment to struct4Nick Bowler
7 May 25 i  i  i  +* Re: Regarding assignment to struct2Keith Thompson
8 May 25 i  i  i  i`- Re: Regarding assignment to struct1Nick Bowler
8 May 25 i  i  i  `- Re: Regarding assignment to struct1Tim Rentsch
29 May 25 i  i  `* Re: Regarding assignment to struct2Andrey Tarasevich
29 May 25 i  i   `- Re: Regarding assignment to struct1Keith Thompson
5 May 25 i  +* Re: Regarding assignment to struct2Tim Rentsch
5 May 25 i  i`- Re: Regarding assignment to struct1David Brown
12 May 25 i  `- Re: Regarding assignment to struct1NotAorB
3 May 25 +* Re: Regarding assignment to struct8David Brown
5 May 25 i`* Re: Regarding assignment to struct7Muttley
5 May 25 i +- Re: Regarding assignment to struct1David Brown
5 May 25 i `* Re: Regarding assignment to struct5Keith Thompson
6 May 25 i  +- Re: Regarding assignment to struct1Muttley
6 May 25 i  +* Re: Regarding assignment to struct2David Brown
6 May 25 i  i`- Re: Regarding assignment to struct1Muttley
6 May 25 i  `- Re: Regarding assignment to struct1Michael S
4 May 25 +* Re: Regarding assignment to struct6Richard Damon
4 May 25 i`* Re: Regarding assignment to struct5Michael S
4 May 25 i +* Re: Regarding assignment to struct2Lawrence D'Oliveiro
4 May 25 i i`- Re: Regarding assignment to struct1David Brown
6 May 25 i +- Re: Regarding assignment to struct1Tim Rentsch
12 May 25 i `- Re: Regarding assignment to struct1Rosario19
4 May 25 +- Re: Regarding assignment to struct1Tim Rentsch
4 May 25 `- Re: Regarding assignment to struct1Keith Thompson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal