Skip to content
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

The semicolon is YAGNI #1573

Closed
wants to merge 2 commits into from
Closed

The semicolon is YAGNI #1573

wants to merge 2 commits into from

Commits on Oct 1, 2017

  1. The semicolon is YAGNI

    Since JavaScript is already interpreting newlines as the ends of developers' statements, semicolons are fundamentally unnecessary to a working JavaScript program. Much like how [the cape on a superhero's back is a liability](https://www.youtube.com/watch?v=4R2aW03pwL0&t=1s), they serve only as a means for modern JavaScript developers to trip over themselves.
    thepeoplesbourgeois committed Oct 1, 2017
    Copy the full SHA
    026b9ba View commit details
    Browse the repository at this point in the history
  2. Change example in another part of the styleguide

    Submitted for your approval, evidence that forbidding semicolons makes JavaScript more readable and less prone to developer typos
    thepeoplesbourgeois committed Oct 1, 2017
    Copy the full SHA
    464492c View commit details
    Browse the repository at this point in the history