News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by throwaway2037 on Monday September 18, 2023 @04:49AM (#37553783)

   type erasure for generics is annoying
I too have spent significant time programming in both C# and Java. This complaint about type erasure in Java: When does it affect your daily life? There are so many craft workarounds available now that it hardly comes up anymore.

Also, would your opinion of Java significantly change if type erasure was removed or never existed?

Re:Java 21 makes me like Java again by throy930493 on Wednesday September 20, 2023 @11:09PM (#37592798)
I have much more experience in C# then Java FWIW, so you're welcome to take my opinions with a grain of salt. I've had a couple of really annoying errors with Beam serializers that took me way longer to debug then I thought was worthwhile.

I think it is a worse choice, it's too ingrained in the language and ecosystem to change. That and a couple of other nits would likely make me pick Java over C# or Go if I was starting a new project going forward.