It also preserves the meaning of 'this' and method calls from the
surrounding scope, and has a different execution model so that the
classpath isn't bloated with one anonymous class per lambda.

What were you hoping for?
On Mar 11, 2013 8:37 PM, "clay" <[email protected]> wrote:

> Is there any substantial difference beyond the less bulky syntax?
>
> I purchased and skimmed Venkat's draft e-book on functional programming in
> Java 8:
> http://pragprog.com/book/vsjava8/functional-programming-in-java
>
> My first disappointment is that if you've seen his live presentations on
> functional programming -- which are extremely entertaining btw -- the book
> doesn't have newer or more in depth content.
>
> But the larger disappointment is that all of these functional practices
> are things I'm already used to in older versions of Java as long as you can
> use the bulkier anonymous inner class syntax and a third party functional
> collections library.
>
> For example, the book shows you how to do standard stuff like:
>
> public static void runLocked(Lock lock, Runnable block);
>
> runLocked(lock, () -> {/*...critical code ... */});
>
> Java 5/6/7 code does this all the time like with the older bulkier syntax:
>
> runLocked(lock, new Runnable() {
> @Override public void run() {
> /* Critical code */
> }
> });
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/javaposse?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/javaposse?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to