-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASI #18
Comments
Well. Knowing to use Not really FUD, the rules are obtuse. The solution proposed by |
That's a rather over-complicated way of saying "never start a line with ( or [ "... The specifics aren't overly important in that regard as the simple and easy to remember rule would prevent the specific "gotchas!" although the specifics are still good to know to better your understanding of the Javascript parser. Code would be consistent with or without Again, I don't care which people decide to use. So long as the code base is consistent. I actually prefer using I'll submit a PR as suggested sometime tomorrow that proposes using a linter to watch for the "gotcha!" as an easy-fix to any possible ASI issues of not using semi-colons. |
To quote
standard
out of laziness:There is only a single rule that is a real "gotcha!" and memorizing a single rule is not "frivolous knowledge of ASI".
I'm impartial about whether to avoid or use semicolons. However spreading FUD as the reason to use them should not be how a responsible developer does it. It's largely a stylistic issue. Feel free to advocate for the use of semi-colons but please make sure you aren't doing so under false reasons.
Regardless, I'd take a programmer with frivolous knowledge of how a language actually parses and functions over one who doesn't any day of the week.
Relevant to above statement:
http://www.slideshare.net/olvemaudal/deep-c
The text was updated successfully, but these errors were encountered: