News for hackers. Stuff that matters.
Re:Java 8 Lambdas by X6MW3aQrZU5VKkz on Sunday June 24, 2012 @02:01PM (#4153790)
C# has had them for a little while now.
Re:Java 8 Lambdas by kmontrose on Sunday June 24, 2012 @02:27PM (#4153859)
C# has had a notion of delegates since day one, and anonymous methods (like delegate(string foo) { ... } ) for 7-ish years.

C# lambda expression syntax (the =>) are about 4 years old now.

Re:Java 8 Lambdas by Estragon on Sunday June 24, 2012 @03:46PM (#4154061)
OT, but all this language comparison got me wondering: has anyone implemented C# on the JVM? :-)
Re:Java 8 Lambdas by zbowling on Sunday June 24, 2012 @04:16PM (#4154137)
yes, Mainsoft Grasshopper. But given that the CLR is superset of JVM features, you can't easily convert .NET MSIL to Javabyte code (a few research projects tried but it's not pratical). Grasshopper did it at a language level and wrote a C# to Java bytecode compiler.

However going the other direction is really easy and straight forward. IKVM.NET has been running Java on top of .NET for years.