Hacker News new | ask | show | jobs
by mahboi 24 days ago
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