People still claiming that Java the language is superior to C# the - TopicsExpress



          

People still claiming that Java the language is superior to C# the language? Are you kidding? Comparing language features only (not including base library stuff) of the latest released versions of Java (SE 7) and C# (5). C# 5: 1. async/await (since C# 5) 2. lambdas (since C# 3) 3. LINQ (since C# 3) 4. type inference aka `var` (since C# 3) 5. extension methods (since C# 3) 6. multiple classes per file (since C# 1) 7. value types (since C# 1) 8. strings in switch statements (since C# 1) 9. unsafe code (raw pointers, arrays, etc. since C# 1) 10. using statement (with IDisposable since C# 1) 11. generics without type erasure (since C# 2) 12. unchecked exceptions (since C# 1) Java SE 7: 1. no async/await 2. no lambdas (planned for SE 8 ) 3. no LINQ 4. limited type inference (since SE 7; still no var equivalent) 5. no extension methods 6. single class per file limit 7. no value types (please verify this!) 8. strings in switch statements (since SE 7) 9. no unsafe code 10. try-with-resources (since SE 7; C# using statement equivalent) 11. generics with type erasure (type erasure is worse) 12. checked exceptions (horrible) Java the language is inferior to C# the language in at least this many ways. This is a fact. However, I will give credit to their tooling ecosystem, as I said before. The lack of language features in Java is almost made up for in the tooling, and its platform support is superior to C# since it can officially run on non-Windows systems. You can get many of these features in Java with add-ons and tools e.g. Lombok. Im not very familiar with the Java ecosystem myself so Ive only heard of these things second-hand.
Posted on: Sun, 24 Nov 2013 01:02:51 +0000

Trending Topics



Recently Viewed Topics




© 2015