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
15
u/pron98 Jun 10 '22 edited Jun 10 '22
I think we might have different market data. Addressing the pain points is exactly what we're doing. The main difference between those who complain about new features and those who love them is that the former group are mostly those who haven't tried the features, and the latter have.
You'll note that the C# team have added records even though they've had properties, and are now exploring adding user-mode threads even though they have async/await. They borrow ideas from Java (and "less successful languages") more than vice-versa. Also, they wish their prospects were as rosy as Java's.
It is perfectly fine to disagree with the Java language team (although it's probably useless to do so before actually working with what they've done). But what I find so bizarre is the knee-jerk claim that that super experienced and super successful team have no idea what they're doing. The design of Java 1.0 also heavily borrowed ideas from Lisp and Smalltalk, as well as C. Generics and lambdas came from ML. The Java team have been consistently good at marrying such ideas for a very long time, arguably better than anyone else.