Bright Java Expressions

Java adds lambda expressions. I want to understand why this is important. What does this mean for a Java programmer who has yet to expose functional programming idioms? Does this mean that I can write code that works better or scales in bulk, or does that make the code less verbose. Or all that.

+47
java lambda java-8
May 31 '13 at 14:45
source share
1 answer

Oracle already has a tutorial theme. It lists several cases of great use.

Before I found the link, I was going to say that lambda expressions allow you to pass "functions" to code. This way, you can write code more easily, for which we needed a whole mess of interfaces / abstract classes. For example, suppose you have code that has a complex loop / conditional logic or workflow. In one step you want to do something else. With lambda expressions, you can simply pass this “something else”. However, read the tutorial. This is very clear.

+39
May 31 '13 at 14:56
source share



All Articles