4 ms·
C++ has gone down a different path, and reasonable one if I can say so myself. Bjarne Stroupstrup said: > I don't like garbage. I don't like littering. My ide
by einpoklum 5y ago
C++ has gone down a different path, and reasonable one if I can say so myself.
Bjarne Stroupstrup said:
> I don't like garbage. I don't like littering. My ideal is to eliminate the need for a garbage collector by not producing any garbage. That is now possible.
And indeed, with modern C++ idioms you can avoid leaks at the static analysis level, avoid buffer overflows by simply not passing raw pointers around, etc. So no borrow checker / garbage collector necessary. For a little more elaboration on this point, see:
https://stackoverflow.com/a/48046118/1593077 https://stackoverflow.com/a/48046118/1593077
Is it 100% bullet-proof? No, but then, Rust needs some unsafe parts too.