Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwawayfuzz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
throwawayfuzz
9y ago
Unfortunately, there are a number of correct uses of go that swallow errors. For example, fmt.Println returns an error, but you're just not going to see that error handled. Sometimes, it doesn't matter whether something has failed
2.
▲
by
throwawayfuzz
9y ago
If you want this behavior, you can just panic if an error is returned. Or you can divide the set of errors into expected and unexpected kinds, and panic only on the unexpected ones. But the main reason this is the case is because in Go, err