News for hackers. Stuff that matters.
Re:The Logical Disaster of Null by hawkice on Thursday May 10, 2018 @01:12AM (#17036554)
Go is one of the worst/weirdest. It has semantics around uninitialized variables that most programs will rely on for correctness. And it also has nil.
Re:The Logical Disaster of Null by vbezhenar on Thursday May 10, 2018 @06:03AM (#17037554)
And nils in Go might be different. That's even more weird.
Re:The Logical Disaster of Null by hawkice on Thursday May 10, 2018 @07:33AM (#17037961)
Right, interface Nils compare on type too, right? This is bananas.
Re:The Logical Disaster of Null by justincormack on Thursday May 10, 2018 @03:42AM (#17037056)
Go is bad in that it uses pointers to make something nullable, but i dont think the uninitialised non nullable values are zero is that bad. Otherwise uninitialised is another type of null...