Hacker News new | ask | show | jobs
by spullara 19 days ago
If you ignore it that is the same as swallowing an exception which is also allowed with checked exceptions.
1 comments

Ignoring an error in Golang looks like

    val, _ := doFunc()
which is also what it'd look like to ignore a return value. You have to know the second part is an error. Vs in Java

    try {
        foo.doFunc();
    } catch (IOException e) {

    }
which is explicit