News for hackers. Stuff that matters.
Re:Union types ('enum types') would be complicated in Go by rudiksz on Saturday December 07, 2024 @05:15AM (#42348688)
Half of the language is already non-nullable and is accomplished by allowing for zero values. Non pointer variables are guaranteed to be never nil.

What is missing is the ability to have pointer variables and have the compiler ensure that it will be never nil. I believe this was a design choice, not some technical limitation.

There are no comments on this comment yet.