Trailing Commas

John Hendrikx hjohn at xs4all.nl
Fri Dec 1 04:44:35 UTC 2023



------ Original Message ------
>From "Ron Pressler" <ron.pressler at oracle.com>
To "Johannes Spangenberg" <johannes.spangenberg at hotmail.de>
Cc "amber-dev" <amber-dev at openjdk.org>
Date 30/11/2023 20:02:42
Subject Re: Trailing Commas

>  Additionally, if this option exists, people will want to write or update style guides preferring one style or the other.
>
I feel this is the most important point in this discussion.  When you 
can offer only one way of doing things, it eliminates needless 
discussions and makes code more recognizable.

Take `var` -- it has led to many discussions, many variations of when it 
should or should not be used, how variables should be named when it is 
used (should they convey more information since the type is now less 
obvious?)... while the previous status quo (pre-`var`) meant there was 
only way of doing things, resulting in more recognizable code, more 
consistent variable naming patterns and far far less discussions.

--John



More information about the amber-dev mailing list