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

Localized bugs are still bugs. Better always require a variable declaration and have no defaults.

Usually languages use local-by-default to avoid the need for variable declarations in the first place (in misguided manner, IMO) instead of doing so to avoid globals.

This page might be interesting, btw: http://lua-users.org/wiki/LocalByDefault



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

Search: