What are variables and semicolons for actually? - eviltoast

  • Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    4
    ·
    7 months ago

    After programming in Go for nearly a decade, the idea of going back to needing semicolons brings me pain. Rust seems cool, but semicolons 🤢

    • TadoTheRustacean@programming.devOP
      link
      fedilink
      arrow-up
      8
      ·
      7 months ago

      As you can see, rust allows you to not put semicolons at the end of code blocks. The presence of semicolons is not a language killer. It’s a very hard language, but its worth it.

      • asudox@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        7 months ago

        I agree. Semicolons are a small “tradeoff” (personally not for me) for such a great language.

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        The presence of semicolons is not a language killer.

        I’m not saying it is. But every time I have to work in a language that requires semicolons I’m constantly forgetting them and constantly reminded of how nice it is to not have to care in Go.