void handling in expression lambdas and lambda conversion
Peter Levart
peter.levart at marand.si
Thu Jan 14 23:17:02 PST 2010
On Thursday 14 January 2010 16:52:57 Neal Gafter wrote:
> > #void() lambda = #() (statements; void);
> >
> > instead of:
> >
> > #void() lambda = #() (statements; (Void)null);
> >
> >
> > What do you think?
>
> I think that I don't know what problem you're solving. Do you believe
> that this awkwardness will interfere with real software engineering?
> In most cases, the programmer could just use a statement lambda.
> Alternately, if the context benefits from transparency, she could
> write "null" (it is a subtype of java.lang.Void) as the final
> expression to be more concise.
Oh, I have missed that - it's obvious.
>
> Cheers,
> Neal
Peter
More information about the closures-dev
mailing list