3 ms·
Long time C++ programmer here. I specifically like the immutable-by-default, borrow, and move semantics. I can write safe code without bloating up my source wi
by sidlls 10y ago
Long time C++ programmer here.
I specifically like the immutable-by-default, borrow, and move semantics. I can write safe code without bloating up my source with 'const &', std::move, '&& ...' and the like.
The safety issue for me is about the least important thing. Touting it as the big reason to use Rust is a distraction from my point of view.
- santaclaus 10y ago> The safety issue for me is about the least important thing. For real. Rust is a great language, but for the love of god, all you hear is safety safety safety. I give about 2 out of 10 fs about safety. The worst part of C++? Dependency management. Cargo is sick -- hype that up more!
- pjmlp 10y ago> The worst part of C++? The worst part is people using it as if it was C with a C++ compiler. I lost count the amount of times I had to create a nice C++ wrapper for "C++" libraries that are just a pile of C functions and data structures, due to copy-paste compatibility. And yes, the respective lack of safety by not making use of C++ improved type system and standard library.
- deleted 10y ago[deleted]