r/java • • 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.

JEP draft: Concise Method Bodies

some experiments with Concise Method Bodies

43 Upvotes

54 comments sorted by

View all comments

Show parent comment

4

u/jvjupiter Jun 11 '22

Right. Such feature is a great idea. I’m really amazed by the given examples in the draft. Having this feature is like having some sort of lambda expressions in Java 8. It would be another breakthrough feature. It’s just unfortunate it’s not priority at the moment.