I think this is the right decision. Error-handling the go-way focuses on whether a single operation failed, rather than how a set of operations failed.
In Python or Java, you see a lot of try-catches around blocks of code, which can obfuscate where the source of the error is, despite having particular handling for the type of error.
For systems code, I mostly care about whether something failed... like:
- Was the socket opened?
- Was the file created?
- etc.
In Python or Java, you see a lot of try-catches around blocks of code, which can obfuscate where the source of the error is, despite having particular handling for the type of error.
For systems code, I mostly care about whether something failed... like: - Was the socket opened? - Was the file created? - etc.