2 ms·
> In my opinion, the two languages are going to co-exist for a long time. It goes deeper than that, in a couple of places Rust depends on the C standard: the f
by cesarb 7y ago
> In my opinion, the two languages are going to co-exist for a long time.
It goes deeper than that, in a couple of places Rust depends on the C standard: the fixed-layout `#[repr(C)]` structs (without that attribute, the compiler is free to reorder the struct fields; with that attribute, it's laid out the way C would do it), and the `extern "C"` function call ABI. The way to call any other language from Rust, or Rust from any other language, is to go through `extern "C"` functions passing `#[repr(C)]` structs. So even if the C language dies one day, parts of it will live in Rust forever (or as long as the Rust language lives).