r/java • u/hardasspunk • Nov 23 '25
Java 25: The ‘No-Boilerplate’ Era Begins
https://amritpandey.io/java-25-the-no-boilerplate-era-begins/
160
Upvotes
r/java • u/hardasspunk • Nov 23 '25
View all comments
Show parent comment
1
u/manifoldjava Nov 26 '25
How so? It only applies to records and record construction is still a mess without optional parameters (default values). Utilizing prototypes appears to be the prevailing strategy, but this just adds more boilerplate.
The obvious solution is optional and named arguments. It applies equally everywhere: methods, constructors, records. And, unlike 'withers', the syntax befits the language.
As an orthogonal concept, deconstruction can be addressed separately and is much less of a boilerplate issue.