Expected distribution of lambda sizes (Re: Syntax poll, take 2)

Neal Gafter neal at gafter.com
Tue Jun 14 22:46:07 PDT 2011


On Tue, Jun 14, 2011 at 10:19 PM, Knox, Liam <
Liam.Knox at morganstanleymufg.com> wrote:

> students.filter(s -> "Smith".equals(n(o, o->o.getName())));
>
> Is better
>
> students.filter(s -> "Smith".equals(o.getName()));
>

This throws an exception with the Person object is null.


More information about the lambda-dev mailing list