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

Does having semicolons help with minification (which is common practice for sending JavaScript over the web)? Although, thinking about it, replacing ";" with "\n" would be the same number of bytes.

The only (contrived) advantage of using semicolons that I can think of is to avoid potential problems with line wrapping. For example, some mail clients add new lines after 80 characters, which would be more likely to break Dart code than JavaScript.



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

Search: