• @Warl0k3@lemmy.world
    link
    fedilink
    English
    04 months ago

    C++ is just the next iteration of C. C# is just another layer of iteration on top of C++. Flags are simple indicators for programs, usually set by a controlling human/system, semaphores are flags that communicate between processes.

    • @Yaztromo@lemmy.world
      link
      fedilink
      English
      04 months ago

      C++ is just the next iteration of C.

      This is somewhat clever when you know that the ‘++’ operator is the post-increment operator in C.

      C# is just another layer of iteration on top of C++.

      …except there is no ‘#’ operator in C or C++, so any interesting self-referential pattern breaks down here. The ‘#’ comes from musical notation, where a ‘#’ (sharp) note is played a semitone higher — and was chosen more for marketing purposes rather than scientists having an inside joke.

      You could have also mentioned ‘D’, which is another “next iteration of C” independent of C++.