3 ms·
True, but Rust feels like C with the good bits of C++, but none of the weird ones. It doesn't have Rule of Three (or Five), it doesn't even have constructors.
by pornel 9y ago
True, but Rust feels like C with the good bits of C++, but none of the weird ones.
It doesn't have Rule of Three (or Five), it doesn't even have constructors. No SFINAE surprises ("templates" work like Concepts which are promised, but not in C++ yet). No headers. Pointers are "smart" by default and moves work without explicit std::move. "Panic safety" is less taxing and needed less often than exception safety. You can pass objects by value without accidentally truncating them, etc., etc.
C++ can do a lot of nice stuff, and even a lot of it quite safely, but I feel like it's going to backstab me every time I forget about some obscure rule, and it's going to be my fault for not knowing it. In Rust I can be confident that if it compiles, it's good.