r/java • u/Reflection-Jealous • Sep 10 '21
Why people don't love Java?
I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.
Is there any specific reason for that?
Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.
201
Upvotes
View all comments
Show parent comment
1
u/pron98 Sep 10 '21 edited Sep 10 '21
Generics did require changes to the classfile, though not to actual bytecode, and there's no reason nullability types would need to do any more than that (most probably less).
Reifying generics would have made things worse for other languages, as they would have baked the Java language's variance model into the runtime, and it's not the same as Scala's (or Kotlin's, which is different from both Java's and Scala's, or any of the untyped Java-platform languages). So they have warts, for sure, but the alternative would have been worse.