• Windex007@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    It’s 2023, why does your language have semicolons at all?

    Explicitly constructing your intentions are features of a language.

    I LOVE types. I LOVE semi colons. I LOVE compiler errors.

    Why? Because the ALTERNATIVE is finding (if you’re lucky) unexpected behaviour at run-time.

    I promise, I promise SO HARD, that memes about semi colons or “my code doesn’t compile” are GREAT problems to have.if that’s what’s making you sad, your life is good and you’re getting paid 10x too much.

    • flamingo_pinyata@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Semicolons are not at all comparable to types.

      Types give structure to your program, prevent bugs and make team work easier. Semicolons are an artifact of the times it was thought multiple statements could go on a same line. Although I do admit, they make language design easier.