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.
[ Parent
| on HN ]
How else would you use conditions or loops?
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.