Hacker News new | ask | show | jobs
by zaphirplane 1285 days ago
Adding features doesn’t mean breaking backwards compatibility, I can only think of modules since Java 8 that can maybe be.

What Kotlin features are possible because of that freedom ? Genetics can be an example I can’t say it’s impossible for Java to add in out refied keywords

1 comments

The obvious one is putting types on the right, which is a useful syntax for more pervasive type inference.
I don’t know, in theory replacing types with ‘var’ would work just as well for Java, the advantage (or more like elegance) of ident: type syntax comes from a parser perspective.