• mmddmm@lemm.ee
      link
      fedilink
      arrow-up
      36
      ·
      3 个月前

      It’s a very C++ thing that the language developers saw the clusterfuck that is stream flushing on the kernel and decided that the right course of action was to create another fucking layer of hidden inconsistent flushing.

      • jdeath@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        3 个月前

        programmers manage to do stupid shit in every language. i was wondering if there was a way to stop them, and golang comes close but maybe proves it can’t be done. idk!

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      20
      ·
      3 个月前

      Just because the box says something is flushable doesn’t mean you should flush it.

    • Rednax@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 个月前

      Considering std::cout should only directly be used when you are too lazy to place breakpoints, I totally get the decision to auto-flush.