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++.
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.
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. π―ββοΈ
23 Comments
nieceandtows@programming.dev · 89 pts · 3y
Should have used python. The answer is youme.
Zagorath@aussie.zone · 28 pts · 3y
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@kbin.social · 23 pts · 3y
JavaScript might even concatenate some integers instead of adding them just for shits and giggles.
Eiim@lemmy.blahaj.zone · 12 pts · 3y
R uses
paste0()for some reasonazvasKvklenko@sh.itjust.works · 8 pts · 3y
Lua uses
..rikudou@lemmings.world · 7 pts · 3y
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@aussie.zone · 1 pts · 3y
I dunno, I've never actually worked in C++, but I tried it out online and it didn't seem to work.
LeftRedditOnJul1@lemmy.world · 16 pts · 3y
The answer is NameError: 'you' is not defined
squaresinger@feddit.de · 12 pts · 3y
Only if you put "you" and "me" in quotation marks.
balance_sheet@lemmy.world · 7 pts · 3y
TonyTonyChopper@mander.xyz · 3 pts · 3y
The answer is false. youme !<3
unagi@feddit.nl · 39 pts · 3y
If you are one and I am one then you plus me is love.
you = 1
me = 1
you + me < 3
oce@jlai.lu · 10 pts · 3y
You may try to divide us but we'll always be as one.
Draegur@lemm.ee · 35 pts · 3y
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.
Ethanol@pawb.social · 14 pts · 3y
I feel like javascript would actually do this :P
palitu@lemmy.perthchat.org · 5 pts · 3y
Pepsi?
Extra credit!
darcy@sh.itjust.works · 2 pts · 2y
πππzby
FellowHuman@lemmy.ml · 27 pts · 3y
"undefinedundefined"
HiddenLayer5@lemmy.ml · 12 pts · 3y
[Object object]
dohpaz42@lemmy.world · 20 pts · 3y
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. π―ββοΈ
Rentlar@lemmy.ca · 14 pts · 3y
When js is ur bf/gf:
84
49
36
59
youme
WindyRebel@lemmy.world · 6 pts · 3y
I know my calculus. It says you+me = us
Stupid AI!
QuazarOmega@lemmy.world · 6 pts · 3y
Less than three
..unless π³
thefartographer@lemm.ee · 3 pts · 3y
I am the mayor of Bonetown β Population: you and me.