Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lambdas
#8
(01-08-2015, 08:04 AM)Sex Slave Wrote:  They are indeed useless. I think they are also pretty confusing and render code as less easy to read.
For example, why use a forloop like this:

Code:
list.forEach(i -> i.invokeMethod());

When you can simply, and more readably do this:



Code:
for(int i : list){
  i.invokeMethod();
}

I suggest you look into functional programming languages to see where lambdas come from and why they're so important. Java's lambdas are relatively tame because the language wasn't designed around them from the start. When functions become first class members of a language, the design of everything else starts to shift (toward what has now developed into functional programming).
Reply
 


Messages In This Thread
Lambdas - by Konloch - 10-01-2014, 02:54 PM
RE: Lambdas - by Bibl - 10-10-2014, 06:36 AM
RE: Lambdas - by Bibl - 10-25-2014, 11:31 AM
RE: Lambdas - by Konloch - 10-26-2014, 02:30 AM
RE: Lambdas - by DarkStorm - 01-05-2015, 07:13 AM
RE: Lambdas - by zooty - 01-08-2015, 08:22 PM
RE: Lambdas - by DarkStorm - 01-08-2015, 11:11 PM
RE: Lambdas - by Sex Slave - 01-08-2015, 08:04 AM
RE: Lambdas - by DarkStorm - 01-08-2015, 06:01 PM
RE: Lambdas - by Explicit - 01-27-2015, 05:53 AM
RE: Lambdas - by lab27 - 02-06-2015, 09:26 PM
RE: Lambdas - by Cov - 01-27-2015, 06:35 AM
RE: Lambdas - by Explicit - 02-07-2015, 07:04 AM
RE: Lambdas - by Obscurity - 02-10-2015, 03:46 AM
RE: Lambdas - by MalikDz - 02-12-2015, 10:26 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website