Updated State of the Lambda
Brian Goetz
brian.goetz at oracle.com
Sat Oct 16 06:21:23 PDT 2010
No, there's a reason for that.
Consider an assignment, using both tokens:
Callable c = #{ => 3 };
Callable c = #{ -> 3 };
When your eyes look at the first line, they see two equal signs, and they are
perceived "equally" and it is harder for your brain to parse it correctly.
On 10/16/2010 6:27 AM, Llewellyn Falco wrote:
> As i'm sitting in south africa, looking at the table of electric adaptors, I'm
> reminded of the importance of consistency, and I have to ask: why -> instead of =>
>
> ->
> =>
>
> so close, and yet different. is it just to be different?
>
> Llewellyn
>
> On Fri, Oct 15, 2010 at 12:55 PM, Brian Goetz <brian.goetz at oracle.com
> <mailto:brian.goetz at oracle.com>> wrote:
>
> An updated draft (Version 3) of the State of the Lambda has been published at:
>
> http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-3.html
>
> Notable differences from the previous draft include:
> - 'this' in lambda expressions is lexically scoped
> - 'yield' keyword dropped in favor of 'return'
> - new syntax
>
> Maurizio will be pushing an implementation conforming to this draft soon.
>
>
>
More information about the lambda-dev
mailing list