Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lambdas
#5
(10-25-2014, 09:23 AM)Sunos Wrote:  It's pretty useful for functional interfaces and small forloops to make code more compact and readable.

However, this is the only time that i'd use them. Other ways are indeed very useless.

Example:


Code:
new Thread(r -> Thread.sleep(500)).start();

Instead of:


Code:
new Thread(new Runnable(){
    public synchronized void run(){
         Thread.sleep(500);
    }
}).start();

AND:


Code:
Vaginas.pussyList.forEach(v -> v.queueNewPeriod());

Instead of:


Code:
for(Vagina v : Vaginas.pussyList){
     v.queueNewPeriod();
}

Although it does seem the exact same...

Yeah. Lambdas ARE completely useless, except for functional interfaces.

also u can override run()v in thread instead of making a new anonymous runnable
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 forum 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