3 ms·
It's not actually true that no errors go unhandled. func foo() error { return errors.New("whoa!") } func bar() { _ := foo() // onward!
by politician 12y ago
It's not actually true that no errors go unhandled.
func foo() error { return errors.New("whoa!") }
func bar() {
_ := foo()
// onward!
}
- NateDad 12y agoUh yes? This is you telling the compiler specifically that you don't care about the error. It's equivalent to try { foo() catch {} In other languages. That's not a problem, that's the computer doing what you explicitly told it to do.