News for hackers. Stuff that matters.
Re:Show HN: Returnif – the conditional return statement by gitgud on Wednesday July 25, 2018 @10:43AM (#17609617)
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.
Re:Show HN: Returnif – the conditional return statement by adamlouis on Wednesday July 25, 2018 @02:24PM (#17611551)
Thank you! Definitely a bit overboard.

`returnif` is fun, but there's certainly value in the simplicity of restricted, opinionated syntax (e.g Go).