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

2.2 seems completely arbitrary to me. If your functions are so big that you need block scope, you're doing it wrong IMO.


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.


the same way you would in es5?




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

Search: