Re:A categorized list of all Java and JVM features since JDK...
by zmmmmm on Thursday April 01, 2021 @06:42PM
(#26667171)
It's so crazy - with all the huge and radical features they've added this would surely have been so simple by comparison and yet added more value than about 80% of the things they've done. It's about half the reason I still use Groovy now since Java has solved most of the rest over time. But I just cannot go back to writing getters and setters!
Re:A categorized list of all Java and JVM features since JDK...
by kaba0 on Friday April 02, 2021 @04:50AM
(#26669999)
I believe the Java lang team simply dislikes the Java Beans convention, and if they see a better future, they rather not maintain properties forever.
I think the current future view is Withers ( https://github.com/openjdk/amber-docs/blob/master/eg-drafts/... ).
So far the only reason I’ve concluded is Java’s language designers’ egos were so damaged by C#, Swift, Kotlin, TypeScript, etc that after dogmatically denying the developer-productivity benefits of properties for the past 20 years that to concede now would mark the end of Java as a language entirely.
...I kid, but seriously I haven’t heard any compelling argument from the Java camp yet for refusing to add this feature. Object-properties are easily the lowest-hanging-fruit with the biggest productivity-gains.
Heck, even some of the most popular C++ compilers support object-properties as proprietary extensions.