Trailing Commas

Kevin Bourrillion kevinb at google.com
Thu Nov 30 22:36:44 UTC 2023


On Thu, Nov 30, 2023 at 2:10 PM Brian Goetz <brian.goetz at oracle.com> wrote:

 - trailing comma support is intrinsically a bad idea, it is something we
> sometimes hold our nose and tolerate, but should never like.
>

Huh? I don't know what this means.

I don't really expect this feature to happen, but I feel like this thread
ought to include some mention of the actual benefits of the feature?

Of course it makes some maintenance tasks (i.e. reordering lists) strictly
easier. But I don't always see it mentioned that it also leads to smaller
diffs, which makes "blame" info slightly more accurate, merge conflicts
slightly less common, and code reviews slightly more efficient. Of course,
"slightly" is charitable; it's a very small effect. Still, in my non-Java
"fun" projects I use them all the time and it seems strictly worse not to.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231130/050bcefa/attachment-0001.htm>


More information about the amber-dev mailing list