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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jun 18, 2026 | Excessive nil pointer checks in Go by ingve | 125 | 109 |