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

Or, just add a semicolon and keep it simple. Why risk it? KISS at work.


There are two possibilities:

1. Prefix lines that start with punctuation, specifically [(-+/ with a ;. Then omit them everywhere else. Lines that start with punctuation are a tiny subset of all lines generally.

2. Postfix every line with a ;, "just in case"

I can't see how nr. 1 is harder. And in case 2 you don't actually put ; at the end of every line, you don't put them after {} blocks for example, so it's not like it's somehow easier to remember.

"Because we're used to doing it that way" is a reason I guess, but not a great one in my opinion.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: