Re:JSHint: An Community Driven Fork of JSLint
by callahad on Friday February 18, 2011 @03:12PM
(#2237032)
It's concerned about the declaration of i within the loop's first term. Since JavaScript only has function-level scope, that variable leaks into the broader context, which can lead to unexpected behavior.
[ Parent
| on HN ]
Re:JSHint: An Community Driven Fork of JSLint
by marijn on Friday February 18, 2011 @03:52PM
(#2237213)
Not if you actually, you know, know what you're doing. This dumbing down of programming does not work--if you have clueless people working on code, it'll end up broken, no matter how many tool-enforced 'best practices' they follow.