• Zagorath
    link
    fedilink
    English
    2811 months 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
      2211 months ago

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

    • Rikudou_Sage
      link
      fedilink
      711 months 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
        111 months ago

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