Local functions
Mark Mahieu
markmahieu at googlemail.com
Wed Feb 10 03:40:48 PST 2010
On 10 Feb 2010, at 01:34, Alex Buckley wrote:
>
> My concern about lambdas duplicating the functionality of anon.inner
> classes has led me to think about dropping statement lambdas, keeping
> expression lambdas, and then adding block expressions. (I am avoiding
> saying anything about 'this' in such circumstances.)
Very encouraging that you consider this an option worth exploring.
There are many possible ways to slice and dice lambdas, but extremely limited scope for doing so - the current distinction between statement and expression forms doesn't strike me as one which really carries its weight. If there is justification for having two distinct forms, I think it's more likely to lie in answering the kind of concerns Doug Lea raised recently [1] (although I take a slightly different view on some of them).
Regards,
Mark
[1] http://mail.openjdk.java.net/pipermail/lambda-dev/2010-February/000486.html
More information about the lambda-dev
mailing list