• Flying Squid@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      What about Applesoft BASIC? Because I was pretty good at that on my Apple II, but I don’t think there were semicolons.

      Also, I don’t know how to code, so I don’t know what semicolons are for in code.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        6 months ago

        BASIC statements end on new lines. The language does use a semicolon at the end of PRINT statements in order to omit printing a newline character at the end, but I believe that’s the only use. (It’s been about 20 years since I’ve done anything in BASIC.)

        The meaning of a semicolon depends completely on the language. C and C-like languages (like Java and Rust) tend to use them to delimit the end of a statement.