Eh, I’d argue that Java and C# are in the niche of having few features. While I don’t like this niche, Java having even less features makes it stand out more in this niche. If you’re looking for a language with more features than that, then there’s so many more feature-rich choices than C# that I just don’t feel like you’d choose C#, unless you want Java with integration into the Microsoft ecosystem.
I’m not talking ecosystem or which I’d choose to build an actual project with, just on a pure language basis, C#'s typing system is more flexible and less verbose than Java’s, and unlike Java, C# actually treats functional programming as first class.
Java has certainly gotten better in both regards, but C# was really just a joy in comparison.
Well, on the JVM side of things there’s Scala and Kotlin. Scala supports all the object-oriented paradigms + the functional paradigms. Kotlin supports about the same number of features as Scala, although it puts more restrictions on them. On the Microsoft side of things, I’ve never tried it, but I’m guessing F# has to cover a similar object-oriented + functional feature set. Well, and from what I’ve heard about C++, it’s presumably the language with the most features across all languages.
C# is just flat out objectively a better language, in virtually every single way
Wrong its by microshit that makes it worse
Also java is better designed
Also java doesnt have builtin sql like shit, I hate SQL
Also java has intellij
C#s capitalization scheme is also stupid
In much the same way that McDonald’s is better than a mud pie.
Eh, I’d argue that Java and C# are in the niche of having few features. While I don’t like this niche, Java having even less features makes it stand out more in this niche. If you’re looking for a language with more features than that, then there’s so many more feature-rich choices than C# that I just don’t feel like you’d choose C#, unless you want Java with integration into the Microsoft ecosystem.
I’m not talking ecosystem or which I’d choose to build an actual project with, just on a pure language basis, C#'s typing system is more flexible and less verbose than Java’s, and unlike Java, C# actually treats functional programming as first class.
Java has certainly gotten better in both regards, but C# was really just a joy in comparison.
Out of curiosity, could you give me an example? I usually think the opposite whenever I interact with other languages?
Well, on the JVM side of things there’s Scala and Kotlin. Scala supports all the object-oriented paradigms + the functional paradigms. Kotlin supports about the same number of features as Scala, although it puts more restrictions on them. On the Microsoft side of things, I’ve never tried it, but I’m guessing F# has to cover a similar object-oriented + functional feature set. Well, and from what I’ve heard about C++, it’s presumably the language with the most features across all languages.
C# covers all feature of functional programming that comes to mind from Go (edit: not Go, what was it, Haskell?).
Traits? Done. Monads? Done. Functions as params? Sure. Closures, errors as values, whatever you want.
What are the specific language features you’re looking for or think are missing in C#?