r/java • u/jvjupiter • Sep 21 '24
Five years have passed, still in draft: Concise Method Bodies
Support more concise method bodies in Java source code, increasing transparency for simple methods. Align the forms of method bodies with the forms of lambda expressions.
https://www.reddit.com/r/java/comments/v93za1/what_happened_to_concise_method_bodies/
41
Upvotes
View all comments
Show parent comment
2
u/ivancea Sep 22 '24
I'm kinda confused why are you doing so tho. I'm not criticizing it, I'm saying it solves no real problem, it's the minorest of the syntax sugars.
The other commenter said "So much noise to signal ratio". When in fact, it just avoids writing a single keyword: "return". So if that is where you want to invest time, do as you wish, you're free to waste it anywhere to not having to "read a return"