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

  • @[email protected]
    link
    fedilink
    English
    27
    edit-2
    1 year ago

    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
      51 year ago

      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)

      • @[email protected]
        link
        fedilink
        English
        21 year ago

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

        That said, it would have been fun.