Something like a 'die on error' option might be useful for trivial scripts and applications.
I sometimes do this, and then remove the fail() function to force myself to properly handle the errors. (Still, often is best to handle the errors as soon as you write the code anyway).
The key is that unlike with exceptions, the fact that you are ignoring the error is explicitly stated in the code, is not something that magically might happen.
And most importantly, errors are part of the documented API, with exceptions it is rarely documented what exceptions a function might throw, much less what exceptions the functions called by that function might throw.
Yes, Go error handling is a bit verbose, but that is a sign of how much better it is than exceptions, without falling into the 'checked exceptions' insanity.
Much as you could write this in Java:
catch (Throwable t) {
throw new RuntimeException("oh noes"); // or whatever
}
You could write this in Go: if err != nil {
panic("oh noes")
}They are are not the same.