Hacker News new | ask | show | jobs
by cies 1358 days ago
I agree. It feels a bit like where Java/JVM is at: popular, solid runtime, large community/ecosystem, but Java made some bad choices.

In my opinion: Go needs a Kotlin. First and foremost to do away with implicit nulls (imho the biggest mistake), but here are other things that could be impoved you've already mentioned.

1 comments

The good thing is that Java is incorporating the proven features of other languages. It has gotten records, pattern matching (better than Kotlin's), and in the latest release, virtual threads with structured concurrency, better than async/await, and also better than golang as it lacks structured concurrency.
But implicit nulls are a big pain point (in both Java and Go). And its very hard to fix for Java (and no plant thus far).
There are solutions like CheckerFramework or Nullaway or other compile time annotation processors.
...and Kotlin :)