DEV Community

Discussion on: What Does C++ Do That Rust Doesn't?

Collapse
 
dannypsnl profile image
林子篆

If really have to let me complain Rust, then that would be the feature: lifetime, unless 'a > 'b already be introduced into Rust. Except that, I think C++ allows we have full control of memory management(so we have several ways to do that, but I think this against with safe guarantee of Rust) which is very important in a very very special case, and of course not really matter for most users; I think that's why I use Rust most of time XD.

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited
  • Full control = you can hurt yourself more easily
  • Features = more ways to hurt yourself
  • Safety = limits on what you can do

Features with safety built in are a bit like railings around the Grand Canyon rim. They keep you safe, but you can't rappel down to study the cliff face. For that, you'd have to climb over the railing...at which point, if you don't do it right, the safety feature kinda adds to the ways you can hurt yourself.

Or you just can't get over the railing, and there goes the geologic survey.

It's always a tradeoff, innit? XD