Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I gave an example in the post, but to spell it out: Because a typo variable is not caught, e.g. as an unused variable.

The example from the blog post would fail, because `return err` referred to an `err` that was no longer in scope. It would syntactically prevent accidentally writing `foo99()` instead of `err := foo99()`.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: