I want to propose my own counter-proposal to the discussion that’s ongoing with Go and error handling.

Here it is: https://docs.mills.io/ix4qDHMnQUSPxZ5tXz12Vg?view

It’s very rough and needs much more work, but essentially I want to propose the following change to the language’s grammar:

f := os.Open("foo.txt") or (e error) {
    log.Fatal("error opening file; %s", e)
}

⤋ Read More