Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hawkice
on May 10, 2018
|
parent
|
context
|
favorite
| on:
The Logical Disaster of Null
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.
vbezhenar
on May 10, 2018
|
next
[–]
And nils in Go might be different. That's even more weird.
hawkice
on May 10, 2018
|
parent
|
next
[–]
Right, interface Nils compare on type too, right? This is bananas.
justincormack
on May 10, 2018
|
prev
[–]
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...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: