<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>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.
      I see several areas in the language where they could be
      beneficial:</p>
    <ul>
      <li>Argument list in method calls<br>
      </li>
      <li>Parameter list in method declaration<br>
      </li>
      <li>Throws clause in method declaration</li>
      <li>Implements clause in classes</li>
      <li>Extends clause in interfaces</li>
      <li>Type arguments</li>
      <li>Type parameters</li>
    </ul>
    <p>It's worth noting that array initializers and enum definitions
      already support trailing commas. There have been instances where I
      considered replacing a List or Set with an array simply because
      arrays support trailing commas, whereas <font face="monospace">List.of</font>
      does not.</p>
    <p>A quick google search brought up <a href="https://bugs.openjdk.org/browse/JDK-6407472">JDK-6407472</a>,
      but it's rather dated, and I wouldn't entirely agree with the
      comment. Based on my subjective experience, many, if not most,
      modern languages embrace trailing commas. For instance, the
      official style guide of Rust and various style guides for
      JavaScript recommend their use. While Python's official style
      guide suggests the use of trailing commas, it doesn't make a clear
      recommendation.</p>
    <p>Best Regards,<br>
      Johannes<br>
    </p>
  </body>
</html>