Re:Oracle and the fall of Java EE
by bradleyjg on Friday July 08, 2016 @10:06AM
(#12055558)
I wonder how difficult it would be to port C# to the jvm. It really is a better language. There are some parts of the standard library that are better in java, but overall I'd say C# is better there too.
[ Parent
| on HN ]
Check out kotlinlang by Jetbrains. It's git the best of java, C# and python
Or Ceylon! It looks a lot like Java in some ways, but with a really novel type system.
Kotlin is nice too though.
You could say that Kotlin has already done it.
Care to list what the C## language has that the Java Language doesn't?
I guess, you don't miss what you don't know.
Just one example, the type system just does more, IMO very useful, stuff.
Richer generics. Dynamic typing is there if you want it. Type inference is great, and then coupled with anonymous types allows for some nifty tool-supported functional-style pipelined programming. (RX and Linq). Upcoming language support for tuples looks pretty sweet too.
I have worked on both languages and I have not disliked anything about java.Not here to start a flame war. I heard many times from who have extensively worked on both that supports for generics in c# is far superior than java.And obviously LINQ goodness and async\await comes to mind
From my limited experience using Java after C# 6.
Type inference, C# properties (vs. getters/setters in Java), generics are way better, and of course Linq.
Java 8 makes this a bit better with lambdas but it's still a bit of a pain not having the above present. I still like Java though.