this post was submitted on 12 Mar 2024
1093 points (95.7% liked)
Programmer Humor
32410 readers
379 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
C:
Problem
→return Solution;
C++:
Problem
→C:
Maximum optimization!
But this doesn't return the
Solution
. You don't invoke the lambda.(Or does C++ have implied returns now? Last I heard there was implied
move
)Actually I do; it's the
{}
that initializes the lambda, and the parenthesis after invokes.That said, it would have been fun.