2 ms·
C# has had them for a little while now.
by X6MW3aQrZU5VKkz 14y ago
C# has had them for a little while now.
- kmontrose 14y agoC# 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.
- Estragon 14y agoOT, but all this language comparison got me wondering: has anyone implemented C# on the JVM? :-)
- zbowling 14y agoyes, 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.