Liste des Groupes | Revenir à cl c |
On Fri, 4 Apr 2025 02:57:10 -0000 (UTC)I am certainly in favour of them for things like initialiser lists and enum declarations.
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Thu, 3 Apr 2025 21:48:40 +0100, bart wrote:I disagree. I am in favor of optional trailing commas rather than
>Commas are overwhelmingly used to separate list elements in>
programming languages.
Not just separate, but terminate.
mandatory ones.
...All the reasonable languages allowAre your sure that C Standard does not allow trailing commas?
trailing commas.
That is, they are obviously legal in initializer lists.
All compilers that I tried reject trailing comma in function calls.
But is it (rejection) really required by the Standard? I don't know.Yes. The syntax (in 6.5.2p1) is :
Les messages affichés proviennent d'usenet.