• @Psythik@lemmy.world
    link
    fedilink
    111 year ago

    As someone who uses them all the time, I don’t understand why people struggle with semicolons; they’re not a difficult concept to comprehend.

  • @dQw4w9WgXcQ@lemm.ee
    link
    fedilink
    141 year ago

    They are also a great tool to use in place of tabs or spaces to make java developers lose their minds.

  • @timelighter@lemmy.world
    link
    fedilink
    181 year ago

    “Here is a lesson in creative writing. First rule: Do not use semicolons. They are transvestite hermaphrodites representing absolutely nothing. All they do is show you’ve been to college.”

    Kurt Vonnegut

    • Gnome Kat
      link
      fedilink
      461 year ago

      That’s an oddly transphobic/intersexphobic way to express a criticism of semicolons…

      • Flying Squid
        link
        fedilink
        31 year ago

        He was born in 1922, so that’s not really surprising. Almost no one born that long ago wouldn’t have those bigotries.

        I’m not trying excusing it. I’m just not surprised.

      • Sneezycat
        link
        fedilink
        111 year ago

        “If you want to take my guns away from me, and you’re all for murdering fetuses, and love it when homosexuals marry each other … you’re a liberal. If you are against those perversions and for the rich, you’re a conservative. What could be simpler?”

        -Kurt Vonnegut

        Yeah it looks like the dude had some issues to say the least…

        • @Chriswild@lemmy.world
          link
          fedilink
          21 year ago

          To me it felt like they implied going to college is a bad thing. I didn’t expect them to have a shred of metacognition after that.

        • @timelighter@lemmy.world
          link
          fedilink
          171 year ago

          That’s not his views… that’s from an essay where he’s parodying the mainstream ultrasimplification of political alignment.

          https://inthesetimes.com/article/cold-turkey

          You left out some language that I think clears up his ironic tone:

          If you want to take my guns away from me, and you’re all for murdering fetuses, and love it when homosexuals marry each other, and want to give them kitchen appliances at their showers, and you’re for the poor, you’re a liberal.

          If you are against those perversions and for the rich, you’re a conservative.

          What could be simpler?

          Totally changes it, doesn’t it?

          • Sneezycat
            link
            fedilink
            4
            edit-2
            1 year ago

            Oh, interesting. To be fair, Wikipedia left it out (not me), I was actually trying to check if the dude was a bigot or just 200iq ironic.

            Still not convinced it’s the latter though.

            • @timelighter@lemmy.world
              link
              fedilink
              41 year ago

              I’ve read 12 of Vonnegut’s books. He is fundamentally a social progressive, but there are also some moments in some 70s novels (particularly Breakfast of Champions) that I find homophobic. He also has a habit of making women either passive pleasers or full nutso.

              But he also explicitly and repeatedly pushes kindness, egalitarian social justice, and willingness to change.

              I highly highly recommend every human read Mother Night.

  • Frozzie
    link
    fedilink
    781 year ago

    So you’re saying I can use the semicolon in a different context other than ending an instruction in my Java code ?

    • @Heavybell@lemmy.world
      link
      fedilink
      English
      51 year ago

      You can also use them to split lists where the items have commas in them. Like if you’re saying you’re holding a party and you invited A, whom you dislike but would feel bad to exclude; B, who you’ve not seen in years and really want to catch up with; and C, who is also going to be there.

      • Flying Squid
        link
        fedilink
        21 year 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
          31 year 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.

  • Sheridan
    link
    fedilink
    English
    91 year ago

    What about three, four, or more independent clauses? Is that allowed?

    • Superb
      link
      fedilink
      English
      121 year ago

      I think so! Go nuts though, rules are for suckers

    • @Zachariah@lemmy.world
      link
      fedilink
      1
      edit-2
      1 year ago

      (in standardized English) No, you can’t make them into a star with the semicolon in the center. Sentences are linear, so you can only connect two clauses at a time with one semicolon between them. However, you can chain clauses together, each time using a semicolon to join two independent clauses.

      Except language changes over time, so if the star usage of the semicolon catches on and introduces nonlinear sentences, then have at it.

  • HowShouldIKnow
    link
    fedilink
    English
    41 year ago

    I missed the bus; and that is something I will never ever ever do again

  • Dettweiler
    link
    fedilink
    14
    edit-2
    1 year ago

    They can also be used as a super comma; because sometime you make a longer sentence, or a sentence with complex clauses.

    • @Psythik@lemmy.world
      link
      fedilink
      11 year ago

      You didn’t quite get it right; adding “because” removes the need for a semicolon. Take out that single word, and your sentence becomes proper.

    • Coolishguy
      link
      fedilink
      English
      161 year ago

      I’m sorry, but the example in your comment is nonstandard usage. The part after the semicolon would typically be an independent clause, whereas the “because” marks yours as a dependent clause.

      There are still comma-like uses though. The major one I can think of is as a separator in a list where each element is long, possibly containing commas of its own.

    • @Cagi@lemmy.ca
      link
      fedilink
      16
      edit-2
      1 year ago

      It’s more of a weak period than a strong comma; both sides of it need to be complete sentences.

  • Solinus 🌿
    link
    fedilink
    English
    11
    edit-2
    1 year ago

    em dash supremacy—my friend introduced me to this and i haven’t looked back since.

    alt+0151 on PC, ctrl+alt+minus for word if I remember right. On mobile you go to more symbols, hold down the minus, and slide to the longest one.

    Both require numeric keypad though- but using a minus and a space after can work as a substitute--as well as 2 minus signs (plus Lemmy happens to convert that to an em dash) - but like THAT? treason. absolutely not.

    You can even join more than 2 independent clauses together as shown above.

    • Sheridan
      link
      fedilink
      English
      4
      edit-2
      1 year ago

      On Mac and iPad it’s option-shift-hyphen.

      Also there’s the en-dash (option-hypen on Mac/iPad), which is slightly shorter: –

      The en-dash is meant for ranges of numbers, e.g., 1990–2023, although some use it like an em-dash.

    • @dave@feddit.uk
      link
      fedilink
      English
      21 year ago

      Also en-dash for separating two numbers when indicating a range. I have AHK shortcuts for them both :).

  • Smorty [she/her]
    link
    fedilink
    71 year ago

    You people don’t use semicolons; I am very surprised. For real though, I like to use the in German class, as it makes me seem fancy and knowledgeable.

  • I have been reading a lot of News Articles from the 1920s (project I’m working on) and it’s really noticeable that they use “;” a lot more.