• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    C++ the good parts exclusively uses on stack allocation and passing by const reference without ever introducing pointers.

    You know this to be true.

      • Dudewitbow@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        Because its essential for application use where memory management becomes extremely vital, usually due to the rom or memory to be extremely linited in size. Worrying about memory management (something C++ makes mandatory) is something not all programmers need to care about, but having automated memory mangement is also what causes bloat that comes with modern applications, due to bad programming practices of not caring about it.