Hasn't features like Type-Inference (var), lambdas, new APIs in the Collections Framework, and recently Records and pattern matching helped in any form to reduce the verbosity?
I mean, this is a possibility with Java 15:
publicrecordPerson(Stringname,intage){}publicclassProcess{publicvoidprocess(){varp0=newPerson("a",18);varp1=...;varlist=List.of(p0,p1);// sum all ageslist.stream().mapToInt(Person::age).sum();}}
Yup, glad to see those advances. It’s taken much, much too long IMO for the language to catch up and introduce things like that. I gave up on it before those were part of the language, and that was after 15 years of waiting.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hasn't features like Type-Inference (var), lambdas, new APIs in the Collections Framework, and recently Records and pattern matching helped in any form to reduce the verbosity?
I mean, this is a possibility with Java 15:
Yup, glad to see those advances. It’s taken much, much too long IMO for the language to catch up and introduce things like that. I gave up on it before those were part of the language, and that was after 15 years of waiting.