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
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
C:
Problem
→return Solution;
C++:
Problem
→const [auto]&& (Problem&& problem) noexcept(noexcept( Solution{}(std::forward(problem)) )) { return Solution{}(std::forward(problem)); } -> decltype( Solution{}(std::forward(problem)) )
C:
return *(solution_t*)&problem;
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.