Best Practices for New Language Feature Usage

David Alayachew davidalayachew at gmail.com
Mon May 27 21:03:59 UTC 2024


Most of the new syntax coming out has been as a result of Project Amber.

So, adding them to this thread.

On Mon, May 27, 2024 at 4:33 PM Nick Mancuso <nicholas.mancuso13 at gmail.com>
wrote:

> Hello all,
>
> I maintain a static analysis tool for Java, called Checkstyle
> <https://github.com/checkstyle/checkstyle>. We do our best to stay up to
> date with support for parsing the latest Java syntax, sometimes it is hard
> to know what best practices are for a given feature, especially when it is
> still in preview (we try to support high-demand preview features if they
> have 2-3 preview releases). Would this mailing list be an appropriate place
> to inquire about and discuss how to correctly (and incorrectly) use new
> language features?
>
> For example, I was thinking of creating a post called "Java 21 Record
> Pattern Best Practices". My hope would be that perhaps some of the folks
> that worked on delivering, testing, or just using this feature could
> comment on good usages, things they have seen that are a bad idea, and so
> on. This would help Checkstyle immensely by inspiring the creation of new
> ways to analyze code and help developers to use these new features in the
> best possible way.
>
> Best,
> Nick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20240527/3dce3af0/attachment.htm>


More information about the amber-dev mailing list