• Zagorath
      link
      fedilink
      English
      281 year ago

      Most languages support concatenation of strings using the + operator. The only mainstream languages I can think of that don’t are PHP (which uses “.”) and low-level languages like C & C++.

      • VanillaGorilla
        link
        fedilink
        231 year ago

        JavaScript might even concatenate some integers instead of adding them just for shits and giggles.

      • Rikudou_Sage
        link
        fedilink
        71 year ago

        C++ does as well, doesn’t it? Though I don’t often use std::string, so I’m not sure. But every other string type I worked with had + overloaded.

        • Zagorath
          link
          fedilink
          English
          11 year ago

          I dunno, I’ve never actually worked in C++, but I tried it out online and it didn’t seem to work.