Bitten by the lambda parameter name

Remi Forax forax at univ-mlv.fr
Mon Jul 15 07:52:09 PDT 2013


This snippet not compile,
   Kind kind = ...
   partySetMap.computeIfAbsent(kind, kind -> new HashSet<>()).add(party);

Each time I write more than a hundred lines of codes that use some lambdas,
I fall into this trap.

It's very annoying !

Rémi



More information about the lambda-dev mailing list