3 ms·
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.
by hawkice 8y ago
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.
- justincormack 8y agoGo 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...
- vbezhenar 8y agoAnd nils in Go might be different. That's even more weird.
- hawkice 8y agoRight, interface Nils compare on type too, right? This is bananas.