Re: Block Comments Or Rest-Of-Line Comments?

Liste des GroupesRevenir à cl c 
Sujet : Re: Block Comments Or Rest-Of-Line Comments?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c
Date : 23. Mar 2024, 16:24:37
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utms7l$3n7mv$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 23/03/2024 03:58, Lawrence D'Oliveiro wrote:
On Fri, 22 Mar 2024 10:02:47 +0100, David Brown wrote:
 
On 21/03/2024 22:16, Lawrence D'Oliveiro wrote:
>
On Thu, 21 Mar 2024 13:37:57 +0200, Mikko wrote:
>
On 2024-03-21 06:19:13 +0000, Lawrence D'Oliveiro said:
>
      gdImageCopyResampled
        (
          /*dst =*/ ResizedFrame,
          /*src =*/ Context.StillFrame, /*dstX =*/ 0,
          /*dstY =*/ 0,
          /*srcX =*/ 0,
          /*srcY =*/ 0,
          /*dstW =*/ ResizedFrame->sx, /*dstH =*/ ResizedFrame->sy,
          /*srcW =*/ Context.StillFrame->sx,
          /*srcH =*/ Context.StillFrame->sy
        );
>
I prefer to put the argument names at the end of the line.
>
But putting them in front of the values looks more like the syntax in
languages (like Ada and Python) that do allow specification of argument
keywords.
>
And maybe, in future, if it becomes valid in C (or some successor),
then updating the code should be as simple as removing the comment
symbols.
>
Why would you want your C code to look like Python?
 Is “Python” some kind of trigger word with you? Soon as you see that, a
switch clicks off in your brain, and you are incapable of focussing on
anything else that was said?
No, I am quite happy with Python, and use it regularly.  It is simply that Python and C are very different languages, and I see no benefit in trying to make one look like the other.  (And I talked more about Python than Ada because my knowledge of Ada is a lot more limited compared to my knowledge and experience with Python - and I expect that pattern is common amongst other people in c.l.c.)

Date Sujet#  Auteur
22 Mar 24 * Re: Block Comments Or Rest-Of-Line Comments?29David Brown
22 Mar 24 +- Re: Block Comments Or Rest-Of-Line Comments?1Blue-Maned_Hawk
23 Mar 24 +* Re: Block Comments Or Rest-Of-Line Comments?5Lawrence D'Oliveiro
23 Mar 24 i+* Re: Block Comments Or Rest-Of-Line Comments?2Chris M. Thomasson
23 Mar 24 ii`- Re: Block Comments Or Rest-Of-Line Comments?1Lawrence D'Oliveiro
23 Mar 24 i`* Re: Block Comments Or Rest-Of-Line Comments?2David Brown
23 Mar 24 i `- Re: Block Comments Or Rest-Of-Line Comments?1Malcolm McLean
2 Jul 24 `* Named arguments in C22Ivan Farlenkov
2 Jul 24  +* Re: Named arguments in C12Blue-Maned_Hawk
2 Jul 24  i+* Re: Named arguments in C4Richard Harnden
3 Jul 24  ii`* Re: Named arguments in C3Blue-Maned_Hawk
4 Jul 24  ii `* Re: Named arguments in C2Richard Harnden
4 Jul 24  ii  `- Re: Named arguments in C1Kaz Kylheku
2 Jul 24  i`* Re: Named arguments in C7bart
2 Jul 24  i +- Re: Named arguments in C1Keith Thompson
3 Jul 24  i +* Re: Named arguments in C4Blue-Maned_Hawk
4 Jul 24  i i`* Re: Named arguments in C3bart
4 Jul 24  i i `* Re: Named arguments in C2Keith Thompson
4 Jul 24  i i  `- Re: Named arguments in C1Kaz Kylheku
4 Jul 24  i `- Re: Named arguments in C1Opus
3 Jul 24  +- Re: Named arguments in C1Lawrence D'Oliveiro
4 Jul 24  `* Re: Named arguments in C8Bonita Montero
4 Jul 24   +* Re: Named arguments in C2Michael S
4 Jul 24   i`- Re: Named arguments in C1Michael S
4 Jul 24   `* Re: Named arguments in C5bart
4 Jul 24    `* Re: Named arguments in C4Bonita Montero
4 Jul 24     +- Re: Named arguments in C1Bonita Montero
4 Jul 24     `* Re: Named arguments in C2bart
4 Jul 24      `- Re: Named arguments in C1Bonita Montero

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal