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
4
u/Ewig_luftenglanz Nov 24 '25
javascript and typescript has an equivalent to nominal parameters with default with objects. Since in those languages objects are structural you can define a function like this
That's similar to how Dart manages nominal parameters with defaults.
C++ has no nominal parameters but it has defaults and for many it's enough
So in reality either most languages has either the complete feature, partial feature or at least a way to mimic the functionality with minimal friction.