Lambdas - Printable Version +- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club) +-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1) +--- Forum: Programming (https://the.bytecode.club/forumdisplay.php?fid=86) +--- Thread: Lambdas (/showthread.php?tid=75) Pages:
1
2
|
RE: Lambdas - Explicit - 01-27-2015 They make sense in the case of functional interfaces, but besides that I think they just sacrifice readability for less lines of code. (01-08-2015, 11:11 PM)DarkStorm Wrote:(01-08-2015, 08:22 PM)zooty Wrote:(01-05-2015, 07:13 AM)DarkStorm Wrote: Aside from generics in 1.5, the language really hasn't seen much change for the everyday programmer pre-1.8. Lambdas really aren't a big change tbh, and it's not a change at all when it comes to functionality. The only difference is syntax and afaik (haven't read any info on JVM 1.8 ) it compiles down to almost the same thing. RE: Lambdas - Cov - 01-27-2015 I like them, Java has been lagging behind C# in this respect, for simple 1 line foreach loops they're much nicer to use RE: Lambdas - lab27 - 02-06-2015 (01-27-2015, 05:53 AM)Explicit Wrote: Lambdas really aren't a big change tbh, and it's not a change at all when it comes to functionality. The only difference is syntax and afaik (haven't read any info on JVM 1.8 ) it compiles down to almost the same thing. They actually compile down to something significantly different to the equivalent anonymous inner class. In 1.8, javac makes use of the invokedynamic JVM instruction, which was introduced for scripting languages. I wrote up a bit about it here, from the point of view of decompilation. http://www.benf.org/other/cfr/java8lambdas.html RE: Lambdas - Explicit - 02-07-2015 (02-06-2015, 09:26 PM)lab27 Wrote:(01-27-2015, 05:53 AM)Explicit Wrote: Lambdas really aren't a big change tbh, and it's not a change at all when it comes to functionality. The only difference is syntax and afaik (haven't read any info on JVM 1.8 ) it compiles down to almost the same thing. I see, maybe I might start using them now thanks to this benefit. RE: Lambdas - Obscurity - 02-10-2015 I like them, stops me from having to make a ton of anonymous classes and saves time. Also makes me feel like a pro gangsta. RE: Lambdas - MalikDz - 02-12-2015 lambdas are OP in my opinion. Make code look shorter and neater. But yeah , everyone has it own preferences. |