Live data from Hacker News

Java 8 lambda syntax decided - same as C# and Scala

mail.openjdk.java.net

1–10 of 81 posts

Re: Java 8 lambda syntax decided - same as C# and Scala

#8

"Mistakes will be made, but that's good because it means decisions are being made." -- Steve Jobs

How is this a mistake ?

Erm, its not?. Shawndumas was just pointing out that a decision was finally made. They were grappling over the syntax for over two three years.

Now they will just need to grapple over with what kind of scoping that Java's lambdas will have.

Re: Java 8 lambda syntax decided - same as C# and Scala

#10

I see that the proposed lambda expressions can omit type annotations on the parameters. Does that mean that Java 8 will have at least some limited form of type inference?

The single abstract method interface type of a lambda will be inferred by its declaration site.
Post reply on HN