JEP 302: Lambda Leftovers

Maurizio Cimadamore maurizio.cimadamore at
Thu Dec 8 10:49:35 UTC 2016

On 08/12/16 08:30, Roy van Rijn wrote:
> Now there is no syntactic clue to indicate a different scope. Sure, we
> all know we are modifying a different 'amount' here, but will the
> average Joe programmer? I'm not so sure.
Totally agree here - in fact this is explicitly called out in the JEP. I 
think we should hold off judgment and see how this goes in the real 
world. Certain API idioms (fluent APIs making use of nested lambda, for 
instance) could definitively take advantage of something like this - but 
the readability problem is real and should be assessed with some real 
corpus data.


More information about the platform-jep-discuss mailing list