3 ms·
> One of the main reasons to stick with C++ (and C) is that the investment you put in the code you're writing right now, no matter how fugly it is, will be ther
by amelius 7y ago
> One of the main reasons to stick with C++ (and C) is that the investment you put in the code you're writing right now, no matter how fugly it is, will be there and keep working in the future.
Except slowly people will be writing parts of it in Rust, or they would be using libraries written in Rust (because availability), and then after a while people get annoyed of using more than one language and the whole project will be rewritten in Rust. Of course, at that point, a new language will be invented and Rust code will be looked at as rusty :)
- otabdeveloper2 7y ago> Except slowly people will be writing parts of it in Rust Wishful thinking.
- pjmlp 7y agoWishes sometime turn into reality. https://kennykerr.ca/2019/11/05/rust/ https://kennykerr.ca/2019/11/05/rust/ https://twitter.com/benwilliamson/status/1240113606374686721 https://twitter.com/benwilliamson/status/1240113606374686721
- kllrnohj 7y agoRewriting parts in Rust would require Rust to have good C++ interop, which it doesn't. At all. Rust has good C interop, so if your code is already divided into C-abi shared libraries then you're golden. But if it's not then Rust migration really isn't an option. And realistically I'm not entirely sure how you can add C++ interop to Rust without also ruining Rust. It's a hard problem to say the least.