Please dont take this seriously guys its just a dumb meme I haven’t written a single line of code in half of these languages

@nintendiator@feddit.cl
link
fedilink
English
26
edit-2
1Y

C:

Problemreturn Solution;

C++:

Problem

const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) )
Venia Silente
link
fedilink
English
51Y

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)

@nintendiator@feddit.cl
link
fedilink
English
21Y

Actually I do; it’s the {} that initializes the lambda, and the parenthesis after invokes.

That said, it would have been fun.

xigoi
link
fedilink
121Y

C:

return *(solution_t*)&problem;
@nintendiator@feddit.cl
link
fedilink
English
51Y

Maximum optimization!

Create a post

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.
  • 1 user online
  • 38 users / day
  • 138 users / week
  • 529 users / month
  • 2.24K users / 6 months
  • 1 subscriber
  • 1.68K Posts
  • 37.1K Comments
  • Modlog