Konrad Reiche personal blog

Excessive nil pointer checks in Go

Let’s talk about nil pointer checks in Go. You want to prevent panics in production, but that doesn’t start with a deferred recover. It starts with defensive programming. Check your inputs, check your bounds, and check pointers for nil before dereferencing them. I’ve started to see more nil checks in Go code. In the…
Points
125
HN comments
109
Submissions
1
Cited by
0 commenters

Software EngineeringProgramming Languages2026

On Hacker News

SubmittedTitle on HNPointsComments
Jun 18, 2026Excessive nil pointer checks in Go by ingve125109

Related posts from the same era