2 ms·
The same approach to compatibility with C++? Can you use Rust as successor language in a C++ codebase, just like Typescript in a Javascript codebase? From my (l
by hiq 4y ago
The same approach to compatibility with C++? Can you use Rust as successor language in a C++ codebase, just like Typescript in a Javascript codebase? From my (limited) understanding that's not as straightforward, and other sources online seem to agree with this (e.g. see comments in
https://old.reddit.com/r/rust/comments/w2tygg/carbon_language_an_experimental_successor_to_c/ https://old.reddit.com/r/rust/comments/w2tygg/carbon_languag...).
The way I see it, Carbon has C++ compatibility as a requirement, adding as much safety, performance etc. as possible on top, while Rust seems to start from a safe-by-default approach and building its way from there.