r/java Sep 19 '18

JEP draft: Concise Method Bodies

http://openjdk.java.net/jeps/8209434
60 Upvotes

51 comments sorted by

View all comments

5

u/lukaseder Sep 20 '18 edited Sep 20 '18

I couldn't resist. And the answer I got is quite promising, in fact!

1

u/hellectronic Sep 21 '18

nested "named lamdas"/methods would be really nice !

1

u/lukaseder Sep 21 '18

Absolutely. I really like Brian Goetz's answer to this, in particular that there's a lot of nesting that is currently quite clumsy for arcane reasons, which could be cleaned up. I totally agree that this should be done in a separate project, though.

1

u/hellectronic Sep 21 '18

Oh ja, stimme zu. Edit: I agree xD