Review request for initial lambda functions and utils

Kevin Bourrillion kevinb at
Tue Aug 9 13:43:04 PDT 2011

On Tue, Aug 9, 2011 at 1:31 PM, Rémi Forax <forax at> wrote:

The Java generics spec is already complex so why creating an API
> which is harder to use by putting some extra fences.

My argument has been, "The Java generics spec is already complex so why give
an API three type parameters and two wildcards if it only needs two type
parameters and one wildcard?"

This way, if you know that the output from Iterables.filter() is an
Iterable<Number>, you know that the input was also an Iterable<Number>, and
vice versa.  There aren't unnecessary degrees of freedom.  I'm actually
really surprised this could have made your type inference *more* difficult.

Kevin Bourrillion @ Google
Java Core Libraries Team

More information about the lambda-dev mailing list