ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 10 个月前It's official, Rust is an anti C/C++ elitist slurlemmy.worldimagemessage-square94linkfedilinkarrow-up1416arrow-down132
arrow-up1384arrow-down1imageIt's official, Rust is an anti C/C++ elitist slurlemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 10 个月前message-square94linkfedilink
minus-squarebufalo1973@lemmy.mllinkfedilinkarrow-up2·10 个月前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.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·10 个月前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.
deleted by creator
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.
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.