• 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.

    • oce 🐆
      link
      fedilink
      911 months ago

      You may try to divide us but we’ll always be as one.

  • Cyrus Draegur
    link
    fedilink
    English
    33
    edit-2
    11 months ago

    My brain is too mushy to do it myself right now, but I wonder what the result would be if we were to consider the alphabet a base-26 number system and added the numbers that correspond to those letters.

    actually, fuck it lets go

    me (13),(5)

    you (25),(15),(20)

    5 + 20 = 25 (y)

    13 + 15 = 28 (carry)
    28 - 26 = 2 (b)

    25 + (carried) 1 = 26 (z)

    you + me = zby.

  • @[email protected]
    link
    fedilink
    English
    2011 months ago

    Honestly dodged a bullet there when they can’t even get their errors straight. Obviously an undefined variable you and me would be more appropriate. Duh. 👯‍♀️