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:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Should have used python. The answer is youme.
Only if you put "you" and "me" in quotation marks.
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++.
JavaScript might even concatenate some integers instead of adding them just for shits and giggles.
C++ does, but it's not a very efficient operation. https://en.cppreference.com/w/cpp/string/basic_string/operator%2B
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.