Trailing Commas

tzengshinfu tzengshinfu at gmail.com
Fri Dec 1 01:57:56 UTC 2023


Hello folks:

I have to admit that trailing commas are quite convenient when it comes to
reordering multiple lines of parameters. However, for a single line of
parameters, visually, I always tend to feel like the last element has been
forgotten (just a personal perspective).

Similar situations exist in Javaworld:
- JSON strings (supportive)
- SQL syntax (unsupported)

Perhaps, should this functionality be placed within the IDE rather than the
compiler? Using shortcuts to rearrange multiple lines of parameters, could
the IDE automatically add or remove commas at the end?

(However, if this is the case, this suggestion might veer away from the
main topic of our mailing list.)😅


/* GET BETTER EVERY DAY */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231201/c685130d/attachment-0001.htm>


More information about the amber-dev mailing list