Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binary132
· 2y ago · 0 comments
nil dereference isn’t unsafe.
Comments
[–]
imtringued
2y ago
It's undefined behaviour, which is even worse!
[–]
binary132
OP
2y ago
Nope. Nil deref in Go is checked, and simply panics, just like array access out of bounds.