Hacker News new | past | comments | ask | show | jobs | submit login

  > Coding with semis is like coding with parens around every expression; 
  > unnecessary and paranoid.
Unless, of course, one is using Scheme or some other Lisp variant.



Good thing it's a Javascript style guide, huh? ;)


It was the "unnecessary and paranoid" bit that really turned me off. Flaming everyone who doesn't use the same style wasn't warranted, IMNSHO. I responded with snark.

I think in general the answer may be to use the style that mimics the other code in the application. Rubyists may prefer the newline endings; those using Java or PHP may find having the semi-colon more comfortable. Having less contextual switch between languages may be easier.

Such a sweeping statement seemed a bit ridiculous. Choosing to interpret it in a broader context was intended to highlight my opinion of the original statement.

EDIT: It's been fun watching the mod of the GP go up and down ... zero, back to one, then to zero ... over and over.


It's unnecessary because apps continue to work with little to no modification without semis, it's paranoid because all of the reasons people come up with for why semicolons are important (lint tools? minifiers? bugs?), are all non-problems if you spend a few minutes changing your habits.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: