19

When I hear that “you don’t have to use semicolons in Kotlin / Go / whatever” uttered with such excitement and relief, I am astonished. Semicolons are a problem now? Were they ever a problem?

Comments
  • 0
    I guess it’s less that you don’t need them and more that you won’t have to search for the missing ones
  • 1
    @Alice don’t question my choice of using cat for development.

    In all seriousness though even vim can highlight missing semicolons using autoformat tooling and static analysis.
  • 2
    They are only a problem in memes.

    Not for anyone knowing more than a HelloWorld example and using a decent editor.
  • 0
    I usually say "Whitespace matters!" with relief instead of talking about semicolons. Because developers are forced to at least properly format their code. Mostly. Usually.
  • 1
    Me: <runs script with a missing semicolon>
    Interpreter: error on line 114

    Why is that bad?
  • 0
    I guess some people realize that they've hated typing semicolons all along, me included.
  • 0
    In ES6 JS I don't use semi colons.... Not a problem just one less key to type per statement.
  • 5
    I love semicolons. It feels like ending a sentence with a proper full stop.
  • 2
    @mattwebdev unless in very specific cases where it might result in nasty bugs. Thats why I let prettier add those semicolons for me.
  • 0
    @Alice I develop in Notepad++ and still don't have that issue;
Add Comment