3 ms·
Cool concept! Looks much more readable in this context: err = checkErr() if (err) return err Vs returnif checkErr() However, seems a bit
by gitgud 8y ago
Cool concept! Looks much more readable in this context:
err = checkErr()
if (err)
return err
Vs
returnif checkErr()
However, seems a bit overboard to add a reserved keyword for this 'exceptional' case.
- adamlouis 8y agoThank you! Definitely a bit overboard. `returnif` is fun, but there's certainly value in the simplicity of restricted, opinionated syntax (e.g Go).