Hacker News new | ask | show | jobs
by X6MW3aQrZU5VKkz 5115 days ago
C# has had them for a little while now.
2 comments

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.

OT, but all this language comparison got me wondering: has anyone implemented C# on the JVM? :-)
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.