4 ms·
Everything Java does, C# does better. Java shouldn’t still struggle with generic arrays...but it does. Java should easily have first-class pointer support by no
by jimbob45 6y ago
Everything Java does, C# does better. Java shouldn’t still struggle with generic arrays...but it does. Java should easily have first-class pointer support by now. C# does but Java doesn’t. Checked exceptions should have long been put to bed by now...but they haven’t.
The only reason to use Java atm is interop with another JVM language (e.g. Clojure) or to not get locked into the MS ecosystem. C# is otherwise just streets ahead at this point.
- snypox 6y agoPeople might find you a bit offensive, but I’m really curious if anyone has a counterpoint to this.
- JohnL4 6y agoI don't see the argument for pointers. If you want C++, use C++. Re checked exceptions: they're great. Document how your code can go off the rails or prevent it.
- ptx 6y agoI prefer the JVM over .NET primarily for one reason: Microsoft's pervasive telemetry, i.e. exfiltration of my private data, which is now part of all of their tools and enabled by default. For each tool you have to research what the trick is to disable it (when at all possible), but even then the disabling mechanism is sometimes broken (e.g. for .NET Core) or supposedly local data is sometimes accidentally sent to Microsoft anyway (e.g. for the new terminal). Also, although C# is pretty nice, Kotlin is nicer.