How about a combo?
Pavel Minaev
int19h at gmail.com
Fri Mar 19 17:25:44 PDT 2010
On Fri, Mar 19, 2010 at 2:12 PM, Pavel Minaev <int19h at gmail.com> wrote:
> Function<void(int, int) throws E1, E2> f2;
> f2 = void(int x, int y) throws Exception -> foo();
One other advantage to angle brackets approach that I had forgotten -
it combines readily with type inference proposal for generics. E.g.
the above becomes:
Function<> f2 = void(int x, int y) throws Exception -> foo();
I'm actually curious as to how this would be handled in other syntax proposals.
More information about the lambda-dev
mailing list