this post was submitted on 03 Aug 2023
22 points (100.0% liked)

Programmer Humor

32464 readers
448 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (2 children)

Should have used python. The answer is youme.

[–] [email protected] 2 points 1 year ago

Only if you put "you" and "me" in quotation marks.

[–] [email protected] 0 points 1 year ago (3 children)

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

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 1 points 1 year ago
[–] [email protected] -1 points 1 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.