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

If you really favor protection from errors, then the correct choice is to require 'var' for new declarations but forbid shadowing (it's an error). Shadowing a la Scheme is a source of errors, too -- you can intend the outer variable, failing to notice it's been shadowed. Of course, if you really favor early detection of errors, you'll also have static name binding.


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

Search: