News for hackers. Stuff that matters.
Re:Why Go's Error Handling Is Awesome by 95th on Tuesday July 07, 2020 @09:19AM (#23758901)
Well, in Java's defense, at least you don't forget to check the error like you could in Go.
Re:Why Go's Error Handling Is Awesome by cy_hauser on Tuesday July 07, 2020 @10:00AM (#23759345)
While I'm no great fan of Go's error handling, I've not found this to be an issue. The compiler yells at you if you forget. You'd have to explicitly ignore the error by underscoring it to "forget" it.
Re:Why Go's Error Handling Is Awesome by apta on Tuesday July 07, 2020 @06:13PM (#23764737)
No it doesn't:

    err := foo()
    if err != nil {...}
    err = bar() // accidentally ignored
    err = baz()
    if err != nil {...}