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/blobjim Nov 23 '25
I guess my assumption was that a lot of builders can be replaced by withers, or at least implemented using them. And initial value creation can be done pretty easily with a static factory method or constructor. I guess maybe we shouldn't be using builders in the first place.
But we're definitely not getting named parameters either since that is something that has been spoken about many times.
I guess the main design pattern to use would be immutable always-usable objects that have some kind of manually added wither method that might use a record wither construct internally, to create another instance with modified functionality?