Hacker News new | ask | show | jobs
by tikhonj 5185 days ago
I think the usual semi-colon-less style is to put a semi-colon in front of lines beginning with parentheses (and only those lines). This is the one potential problem area if you don't have semi-colons everywhere, so you can avoid almost all (or maybe actually all) problems just by prepending a semi-colon to those lines.

I think Ricardo's point is that this style (having a semi-colon only before parentheses at the beginning of the line) makes your intentions more explicit.

1 comments

The full list is [(+*/-. (basically parenthesis, array/property acessor, and any math)