void vs Void
Brian Goetz
brian.goetz at oracle.com
Fri Nov 16 07:57:03 PST 2012
It is possible :)
We had this on the list of things to clean up as part of this effort,
but it looks like we're not going to have the time.
On 11/16/2012 10:37 AM, Zhong Yu wrote:
> If a method returns Void, the method body must "return null;"
> somewhere. That is ugly in a lambda expression. Is it possible that
> the compiler adds the "return null" implicitly?
>
> Void foo(){ System.out.println("foo"); }
>
> Zhong Yu
>
More information about the lambda-dev
mailing list