Kotlin is the better Java. C# is just Microsoft Java, it fixed some of Java's mistakes, made a few new ones, but ultimately it's just Java for .Net. I'd say the one decision C# made that really does make it better than Java (and puts it on par with Kotlin) is making variables non-nullable by default. Implicitly nullable variables is the single dumbest decision in Java. Fix that decision and Java instantly becomes so much better.
8 Comments
ArbitraryValue@sh.itjust.works · 35 pts · 1y
C#, the better Java. A really underappreciated language...
orclev@lemmy.world · 16 pts · 1y
Kotlin is the better Java. C# is just Microsoft Java, it fixed some of Java's mistakes, made a few new ones, but ultimately it's just Java for .Net. I'd say the one decision C# made that really does make it better than Java (and puts it on par with Kotlin) is making variables non-nullable by default. Implicitly nullable variables is the single dumbest decision in Java. Fix that decision and Java instantly becomes so much better.
SzethFriendOfNimi@lemmy.world · 11 pts · 1y
Remember F#?
entropicdrift@lemmy.sdf.org · 20 pts · 1y
Yes, I remember other Scala
RagingHungryPanda@lemm.ee · 7 pts · 1y
Oh, you don't know about J#, do you?
https://en.wikipedia.org/wiki/Visual_J_Sharp
LavenderDay3544@lemmy.world · 5 pts · 1y
C# is Microsoft's attempt to turn C++ into Java.
nightwatch_admin@feddit.nl · 1 pts · 1y
Honest question: is this the joke or did they actually make a Microsoft Java? They made lot of other wacky things like Amiga Basic and Microsoft Unix…
ArbitraryValue@sh.itjust.works · 2 pts · 1y
Not as far as I know. C# is similar to Java in many ways but it isn't a type of Java.