Re: Java 8 Lambda binary snapshot
- From: Lew <lewbloch@xxxxxxxxx>
- Date: Fri, 11 Nov 2011 16:20:03 -0800 (PST)
markspace wrote:
Lambda dev and the compiler group (and possibly others) published a
binary snapshot of the current state of lambdas and closures for Java.
http://jdk8.java.net/lambda/
My advice is that all Java developers should be watching this very
closely. It's pretty much the future of Java development.
I'm also looking for tutorials and other information on programing
lambdas and closures, so if anyone wants to help with that I'd
appreciate it.
Here's a couple I found:
<http://www.parleys.com/#st=5&id=2170&sl=2>
<http://www.parleys.com/#st=5&id=2632>
I also found this book at the library and it seems to be excellent:
<http://www.amazon.com/Patterns-Parallel-Programming-Timothy-Mattson/dp/0321228111>
I look at Java closures as just syntactic sugar for anonymous interface implementations, and conversely, as anonymous interface implementations as a poor-man's closure.
This has two advantages. It keeps me out of the purist's dilemma, meaning I don't care that these aren't "real" closures. It provides a simple mental model for how to use them.
That said, it helps to be at least somewhat aware of lambda calculus and the theory and practice of "real" closures to provide a motivating mental model.
The Java perspective that closures boil down to SAM (single-abstract method) interface implementations makes it easy to reason about what they do.
--
Lew
.
- Follow-Ups:
- Re: Java 8 Lambda binary snapshot
- From: Roedy Green
- Re: Java 8 Lambda binary snapshot
- Prev by Date: Re: equals(), Sets, Maps, and degrees of equality
- Next by Date: Re: A strange behaviour of a File property
- Previous by thread: A strange behaviour of a File property
- Next by thread: Re: Java 8 Lambda binary snapshot
- Index(es):
Relevant Pages
|