Re:Java 8 Lambdas
by CookWithMe on Sunday June 24, 2012 @02:16PM
(#4153832)
Finally... and they even infer the type! Positively surprised.
I will stick to Scala, though.
[ Parent
| on HN ]
They can't _really_ infer the type. You just have to have one less set of pizzas. It doesn't work like scala's type inference.
It really does infer the type of the lambda. See Part F of the specification:
http://download.oracle.com/otndocs/jcp/lambda-0_5_1-edr2-spe...
ah yes I see what you mean. My bad.
Re:Java 8 Lambdas
by rabbitfang on Monday June 25, 2012 @03:48PM
(#4158359)
yeah. Nice addition, should make Guava etc. much nicer to use, but I'm also sticking to Scala.