News for hackers. Stuff that matters.
Re:Things Go needs more than generics by cies on Monday October 04, 2021 @09:00AM (#28746090)
Cool. It's a bit like what Kotlin did. Yet after some experience with Kotlin I found it is not perfect. "You have to be extra careful at boundaries" exactly, with Kotlin too.

The question mark is the best thing if you have not build your language with null safety to start with. Please look at Elm for a good example of what real null safety looks like.

With Go they had to change to do the right thing from the start. I really wonder why they didnt.

Re:Things Go needs more than generics by lazulicurio on Monday October 04, 2021 @09:43AM (#28746591)
Also worth noting that Java may be able to fix it in the future after Valhalla drops (and this may mean better implementation for JVM-based languages too).
Re:Things Go needs more than generics by cies on Monday October 04, 2021 @09:52AM (#28746691)
I sure hope so. Not holding my breath though. :)