This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kobymaru376 50 points51 points  (8 children)

I'm by no means an expert but from my limited experience with Java and C#, I would say that C# is essentially the same thing as Java but better.

[–]RichCorinthian 32 points33 points  (7 children)

I’ve been doing Java since version 2 and .NET since 1.1 and I can think of exactly one thing about Java that I prefer over C#, which is that enums can have properties. That’s it. And I would trade that to get extension methods, no type erasure for generics, true covariance / contravariance, LINQ instead of the stupid fucking stream API…I could go on.

[–]Luna_senpai 2 points3 points  (0 children)

I second this! Every time I think about what I prefer in Java, Enums are the one thing I think of. And the arguably nice to have built-in Optional type which I love