2 ms·
Comparisons of full-spectrum C++ vs Rust or some theoretical C++ that drops support for the old stuff are subtly unfair. If you are using a new language then y
by corysama 11y ago
Comparisons of full-spectrum C++ vs Rust or some theoretical C++ that drops support for the old stuff are subtly unfair.
If you are using a new language then you are by definition not maintaining/upgrading old code. If you are starting a new project in C++, you can follow the modern style guidelines and get most everything you are asking for.
At this point, someone usually says "but nothing prevents my horrible coworkers from using horrible features." If your coworkers are horrible, they will find ways to be horrible no matter what language you chain them to.
- steveklabnik 11y ago> If your coworkers are horrible, they will find ways to be horrible no > matter what language you chain them to. While this is true in some sense, it's also a relative degree of difficulty. While you _can_ obviously write bad Rust code, like in any language, you have to go really far out of your way to disable the compiler's assistance. Of course, there are other kinds of 'bad code' than just unsafe...
- corysama 11y ago> Of course, there are other kinds of 'bad code' than just unsafe... Exactly. Many languages make it hard to be unsafe. But, every language makes it easy to be horrible in one way or another.