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

I avoid using the semicolon in JS because doing so forces me to be aware of the semicolon insertion rules. Forgetting them can lead you to believe that statements like

    return
    { foo: 3 };
do what you expect :)


Why would you ever write that




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: