3 ms·
> automates checking your errors It automates checking but not handling the errors. It's the Go equivalent of an empty catch{} block. It allows a programmer t
by cratermoon 3y ago
> automates checking your errors
It automates checking but not handling the errors. It's the Go equivalent of an empty catch{} block. It allows a programmer to not care about errors, which works out to the same thing as ignoring them.
- josephcsible 3y agoNo, Ted's code propagates the error up to the caller, but an empty catch{} block would swallow/ignore the error.