14 ms·
The language doesn't force you to handle errors properly. The default is to drop them on the floor. That's why errcheck exists.
by pcwalton 13y ago
The language doesn't force you to handle errors properly. The default is to drop them on the floor. That's why errcheck exists.
- RussianCow 13y agoI guess I should've worded that differently. No, it doesn't force you to handle errors, but it makes the possibility of errors much more obvious. With exception handling, you never know what functions may raise an exception; Go is much more explicit in that sense, so if you don't handle the error, it's your own damn fault.