News for hackers. Stuff that matters.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by kentosi on Wednesday November 16, 2016 @11:02AM (#12968182)
Or have both. What's in Java 8 that isn't in C#?

And last I checked you couldn't use Java 8 fully on Android (please correct me if I'm wrong).

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by daxfohl on Wednesday November 16, 2016 @11:07AM (#12968247)
Anonymous classes are the big thing I miss. (Yes C# has a feature called "anonymous classes" as well, but it's completely different).
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by TheCoelacanth on Wednesday November 16, 2016 @11:48AM (#12968764)
What do you still use those for? I can't remember the last time I saw an anonymous class used in a way that isn't superseded by lambdas.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by daxfohl on Wednesday November 16, 2016 @12:12PM (#12969064)
Yeah, I was thinking about that when I wrote the comment. They were most useful for `Observable` objects for event handling in swing; you don't really need that with C# events.

There are still uses though. Lambdas are the future, but there are lots of OO-first libraries that are still quite popular. It'd be nice to create e.g. `new Newtonsoft.JsonConverter() { ReadJson() {...} WriteJson() {...}}` etc on the fly sometimes without needing separate classes.

It's possible in F# though, so nothing dotnet specific is preventing it.

Re:Google joins .NET Foundation as Samsung brings .NET suppo... by jdmichal on Wednesday November 16, 2016 @02:07PM (#12970271)
I use them all the time for defining singleton implementations.

    public static final MyInterface SINGLETON = new MyInterface() {
        ...
    }
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by ckarmann on Wednesday November 16, 2016 @11:20PM (#12974237)
Java enums are the one thing that I miss in other languages.
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by adzm on Wednesday November 16, 2016 @11:09AM (#12968278)
If only we could run IL on the JVM
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by johncolanduoni on Wednesday November 16, 2016 @11:03AM (#12968190)
You are painfully correct...
Re:Google joins .NET Foundation as Samsung brings .NET suppo... by xorxornop on Wednesday November 16, 2016 @03:36PM (#12971235)
Value types. Reified generics.