JEP proposed to target JDK 11: 323: Local-Variable Syntax for Lambda Parameters

Andrew Haley aph at redhat.com
Fri Jan 26 15:09:34 UTC 2018


On 26/01/18 09:59, Zheka Kozlov wrote:
> The motivation is to allow `final` and annotations on lambda parameters:
> 
> (final var x) → x + 1;
> (@Nonnull var x) → x + 1;

I'm trying to understand how it makes sense to have something
that's both variable and final.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the jdk-dev mailing list