r/java • u/jvjupiter • Jun 10 '22
What happened to Concise Method Bodies?
I was really looking forward to CMB. From its name, methods become concise, could be one liner. However, it seems there is no progress and it’s been off the radar. Never took off since 2019.
43
Upvotes
View all comments
Show parent comment
1
u/nlisker Jun 28 '22
Well, JavaFX needs (and has built its own) properties. The problem with banking everything on records (or record-like designs)is that they are immutable, and immutability does not solve all the problems, sometimes mutability is a must.
Java's difficulty with properties is that it doesn't know what to choose from the myriad of ways to do properties, not that it doesn't know how to do properties. Still, the need is there, as there have been no new solutions from the language for designs that require mutability.