Because Java sucks at taking those features. I mean look at Java’s Optional abomination of a class and compare it to C# or Typescript’s optional chaining ( ?. ) language feature.
There’s a reason Kotlin was created, because Java is still bogged down by all its legacy kruft.
Because Java sucks at taking those features. I mean look at Java’s Optional abomination of a class and compare it to C# or Typescript’s optional chaining (
?.
) language feature.There’s a reason Kotlin was created, because Java is still bogged down by all its legacy kruft.
It still boggles my mind that C# is as good as it is given where it comes from. Java really fucked up with type erasure and never fully recovered imo.