• solrize@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    5 months ago

    C++ streams are ugly in their own right, but C++ preferred practice these days is to treat it as its own language rather than as a C superset. That is, lots of crufty old C stuff still works in C++ for legacy reasons, but using it when you don’t have to is considered inappropriate.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      Yeah, streams are old and crusty and horrific on the inside (don’t ask about the time I implemented a socket layer with streams), but still less clunky than the C standard library (unless you’re really into being a memory Nazi).