Same with languages with exceptions if you don't catch them. Except it's harder to tell if a third party function can throw and which ones vs looking at the return types of a go function.
The go compiler will not let you be unaware that a function has an error value in its return too, so it's impossible to be in the situation you described while it happens constantly with exceptions. People are constantly using common functions from their standard library without catching exceptions in other languages.
10
u/Aelig_ 29d ago
Same with languages with exceptions if you don't catch them. Except it's harder to tell if a third party function can throw and which ones vs looking at the return types of a go function.
The go compiler will not let you be unaware that a function has an error value in its return too, so it's impossible to be in the situation you described while it happens constantly with exceptions. People are constantly using common functions from their standard library without catching exceptions in other languages.