Informal Golang Proposal:
catch block as an alternative to
if err != nil
PLEASE NOTE: I am not a language designer or have any experience in implementing or mainting a language or compiler. So, I would love to write out the EBNF syntax for what I am about to propose, but alas, I wouldn't know where to start. So, please forgive the informal nature of the proposal and feel free to ask questions; hopefully I'll be able to keep up with actual experts in this field and if not I apologize for my naivety in advance!
try() proposal was closed, I was relieved. There is a problem to be solved here, but
try, to me at least, created more problems while trying to solve one.
The main problems, I think it created were the following:
tryreduced the visiblility of failures. For example: