Function types versus arrays
Neal Gafter
neal at gafter.com
Thu Feb 18 09:45:44 PST 2010
On Wed, Feb 17, 2010 at 2:59 PM, Joshua Bloch <jjb at google.com> wrote:
> consider a method that takes a bunch of #int(int) functions and
> returns their composition:
> #int(int) compose(#int(int)... fns) { <implementation> }
> This should definitely be legal, and shouldn't generate a warning
> (especially given that we're providing a means to eliminate this sort of
> warning on generic varargs parameters in Java 7).
This doesn't conflict with any of the restrictions I proposed.
More information about the lambda-dev
mailing list