Re:Type-erased generic functions for C: A modest non-proposal
by bsder on Friday October 04, 2024 @05:17PM
(#41745675)
> Incrementally replacing C code with Rust is far, far easier than C++.
And yet other languages manage to do that far better than Rust.
Interfacing to C from Zig is both pleasant and straightforward, for example.
Incrementally replacing C code with Rust is far, far easier than C++. For instance, passing null-terminated strings to Rust code is quite straightforward, whereas a std::string absolutely is not.
C will live for a very long time, but C++ will live even longer. Maybe that sounds absurd, but the fact is that every major C compiler is written in C++, and the rest of the toolchain is moving that direction if it isn't already there.