News for hackers. Stuff that matters.
Re:Airbnb JavaScript Style Guide by wnevets on Friday July 03, 2015 @12:44AM (#9823532)
2.2 seems completely arbitrary to me. If your functions are so big that you need block scope, you're doing it wrong IMO.
Re:Airbnb JavaScript Style Guide by Void_ on Friday July 03, 2015 @01:35AM (#9823703)
How else would you use conditions or loops?
Re:Airbnb JavaScript Style Guide by reagency on Friday July 03, 2015 @02:35AM (#9823888)
The style guide doesn't actually use block scope for if/loop.

Many items in the guide are...reasonable, but the explanations are gibberish or don't match the code.

Re:Airbnb JavaScript Style Guide by wnevets on Friday July 03, 2015 @01:04PM (#9826688)
the same way you would in es5?