Re:Griping about Go
by hombre_fatal on Thursday February 07, 2019 @07:13PM
(#19110020)
Yeah, nullable types are one thing. Go's null interface is another:
https://play.golang.org/p/N_3BiUOkRJo
It's probably the first and last to have this quirk.
Nullable types by themselves are fine, the language and the compiler just needs to make handling βis X null?β work the same way as option types do - or better yet: languages were a variable is only in scope if it is not null.