<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <font size="4" face="monospace">The bug evaluation raised two
      aspects of this:<br>
      <br>
       - every change we made that "makes life easier for code
      generators" makes life harder for parsers, and it is not clear
      that privileging one over the other is a good idea;<br>
       - trailing comma support is intrinsically a bad idea, it is
      something we sometimes hold our nose and tolerate, but should
      never like.<br>
      <br>
      To these I will add:<br>
      <br>
       - Trailing comma support in array initializers are almost surely
      a "because C does it" (everything about array initializers was
      copied too-literally from C); this was merely a bad reason in
      1995, it is a terrible reason today<br>
       - Array initializer context is "special" (compared to, say,
      method argument lists) because arrays being initialized do not
      necessarily have static arities, whereas method argument list
      definitely do.  So even if we tolerate it for array initializers,
      there is even less reason to tolerate it in more highly structured
      contexts.  <br>
      <br>
      <br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 11/30/2023 2:02 PM, Ron Pressler
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:C09003C0-9940-4CB1-B33F-91DB287EB0ED@oracle.com">
      <pre class="moz-quote-pre" wrap="">

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On 30 Nov 2023, at 00:22, Johannes Spangenberg <a class="moz-txt-link-rfc2396E" href="mailto:johannes.spangenberg@hotmail.de"><johannes.spangenberg@hotmail.de></a> wrote:

Hello, I was curious about the potential consideration for extending support for trailing commas. While I don't consider them critical, I find myself regularly bothered that I cannot use them.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Hi.

Perhaps someone on the language team has already given the technical merits of this matter some thought, but here’s my non-technical argument against making such a change: 

For every person who has a strong preference in favour of allowing trailing commas where they’re not allowed today you’ll find another with an equally strong preference against allowing them. Additionally, if this option exists, people will want to write or update style guides preferring one style or the other. So the result is a lot of time, and possibly completely disproportionate emotion, spent for what, at best, is little gain. To me this sounds like the kind of change that is bound to require more effort — not on the implementation perhaps, but in debate — than it’s worth.

— Ron

</pre>
    </blockquote>
    <br>
  </body>
</html>