15
odite
5y

Seems like I'm in the minority now since most people don't use semicolons in JS.

Comments
  • 9
    I do because it looks more like C, and the minifier will remove superfluous ones anyway.
  • 4
    Count me in too... I like the Java-ish feel.
  • 11
    I need the semicolons in every language I use, my code feels "naked" if I don't use them.
  • 2
    @neeno i am crying in python and vba. i really like it (at least the first one) but coming from php and javascript it never stops feeling weird.
  • 2
    Besides python, every other language I use requires them, so fuck trendy js standards.
  • 1
    ol' leading semicolon so your uglifier doesnt break it in addition to uglifying it.

    i only remember that one because of flashcards.

    but you cant use it on self executing functions that use arrow functions. or was that self executing functions that use the "function" keyword?

    shit. time for another flashcard.
  • 5
    Simply using them is just better.
    Weird bugs due to optional semicolons are scary.
  • 3
    Weird bugs due to optional semicolons shouldn't happen in 99.9% of normal code :upside_smile:
  • 2
    @igorsantos07 indeed! Especially now, when ESLint covers such edges cases successfully, why the hell I need semicolons? I don't need that verbosity, thanks 😆
  • 1
    I do, because good practice I guess???

    No sense in teaching myself to leave em out then fuck myself in 3 other languages haha
Add Comment