• Vivendi
    link
    fedilink
    arrow-up
    8
    ·
    2 months ago

    C++ when it was new was exactly like this. Rust still hasn’t had 30 years of legacy, all these Rust prophets will shit on it’s name in 15 years when they have to maintain huge codebases with it

    Besides, C++ is very likely to adopt memory safety

    • bufalo1973@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Now it seems the way is unique_ptr and shared_ptr. And std::any to replace void*. At least is what it seems to me.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Yeah, that’s my guess too.

      As to whether C++ can update enough to steal it’s thunder, I feel less qualified to answer. It’d be pretty impressive if they managed to preserve backwards compatibility and do that at the same time, though.