by gitgud · 8y ago · 0 comments
err = checkErr()
if (err)
return err
Vs returnif checkErr()
However, seems a bit overboard to add a reserved keyword for this 'exceptional' case.`returnif` is fun, but there's certainly value in the simplicity of restricted, opinionated syntax (e.g Go).