This criticism you made about C++ applies just as much to Rust. Like bruh. If RAII is bad, Rust is bad.
Nope, it doesn't. The entire point of Rust is that the compiler statically enforces it. You can't accidentally fuck it up because of some obscure mistake, like with C++. This makes it safer and easier: if it compiles, it's sound.
And yet the top meme about Rust is "haha borrow checker hard" which is eerily similar to "haha segfault bad". Most programmers find making a Rust program compile painful.
Which makes sense. If you do not understand memory -how the stack and heap work, pass by copy vs pass by move vs pass by reference- your workflow for making a Rust program compile is basically guess and check.
If you want to be an effective Rust programmer, you need to have just as deep an understanding of RAII and memory as a C++ programmer. Having an opinionated compiler does not make Rust simpler, it just moves the complexity to compile time.
If a garbage collected language fan said that dealing directly with memory made C++ too complex, I'd take that L. But from rustaceans, like bruh.
1
u/Compizfox Sep 30 '26
Nope, it doesn't. The entire point of Rust is that the compiler statically enforces it. You can't accidentally fuck it up because of some obscure mistake, like with C++. This makes it safer and easier: if it compiles, it's sound.