Liste des Groupes | Revenir à cl c |
On Thu, 21 Mar 2024 13:37:57 +0200, Mikko wrote:Why would you want your C code to look like Python? That's as silly as wanting your Python code to look like C code. The languages are significantly different - each with their strengths and weaknesses, and each suitable for quite different kinds of programming tasks.
On 2024-03-21 06:19:13 +0000, Lawrence D'Oliveiro said:But putting them in front of the values looks more like the syntax in
>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.
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), thenI am a fan of being able to name parameters in languages that allow it. I am quite confident that this will never come to C. It /might/ make it into C++, but as people have been writing proposals to do so for 20 years at least, I am not holding my breath.
updating the code should be as simple as removing the comment symbols.
Les messages affichés proviennent d'usenet.