• @WhatAmLemmy@lemmy.world
    link
    fedilink
    392 years ago

    I legitimately lol’d at this. Any time I return from a couple weeks off I’m like “what year is it” + “can you repeat all the stuff about the things”.

    • exu
      link
      fedilink
      English
      62 years ago

      Like this I think

      if [1]; then
          echo "hi"
      fi
      
    • LazaroFilm
      link
      fedilink
      English
      42 years ago

      And then there’s stupid Cpp with

      if (true) {
        do();
      }
      

      Or

      if THIS
        do();
      endif 
      
      • ActuallyRuben
        link
        fedilink
        32 years ago

        What’s weird about the C++ one? At least that one is the same in a bunch of languages

  • LazaroFilm
    link
    fedilink
    English
    11
    edit-2
    2 years ago
    void HelloWorld(string) {
      if (string == "print") {
        Serial.print("Hello World"};
      }
    }
    

    Solved it.

  • cs127
    link
    fedilink
    12 years ago
    void HelloWorld(void (* func)(const char*)) {
        func("Hello world!");
    }
    
  • @nthcdr@lemmy.sdf.org
    link
    fedilink
    12 years ago

    (format t “Hello ~a” 'World). If I’m on vacation and come back to the land of C based languages I will have reverted to the only syntax I enjoy working in.