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

Go:

    r, err:= fn()
Compiles if r is already declared. Creates a new lexical scope that has no access to the outer r. So the outer r doesn't get set. And I get a bug!


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

Search: