News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by chrisdinn on Sunday September 17, 2023 @09:51AM (#37545065)
Curious to understand what you are suggesting here. What’s a better story for polymorphism than duck typing? What would (better?) null-safety look like in Go?
Re:Java 21 makes me like Java again by cies on Monday September 18, 2023 @04:05AM (#37553543)
I'm saying that we need an XYZ to Go what Kotlin is to Java. The I name some ways that Kotlin improved upon Java that Go would also benefit from.

> What’s a better story for polymorphism than duck typing?

Something that give compiletime guarantees and has not runtime overhead.

> What would (better?) null-safety look like in Go?

https://kotlinlang.org/docs/java-to-kotlin-nullability-guide...