20 ms·
> `if err != nil` is a convention. It's not a checked error. It's... obviously both.
by sagichmal 11y ago
> `if err != nil` is a convention. It's not a checked error.
It's... obviously both.
- jacques_chester 11y agoSorry, typo. "Checked exception", meaning that the compiler enforces error handling and that you can look a method signature and learn what kind of exceptions the method can throw without needing to read its internals.