2 ms·
Rust interoperability with C is excellent, way easier than with C++, which is also pretty easy. I think if you’re a good C programmer you’ll naturally be a goo
by mplanchard 2y ago
Rust interoperability with C is excellent, way easier than with C++, which is also pretty easy.
I think if you’re a good C programmer you’ll naturally be a good Rust programmer, and come up to speed faster than you expect.
There’s nothing forcing you to write everything with traits, generics, etc. You can write simple, fast, safe Rust without them.
Edit: read some of your other comments and realize this doesn’t quite address your point, but I do still think that writing small sections of logic in simple, straightforward Rust and then calling that from C is a nice way to get started. Doing so for places where ownership is complicated and the compiler can help enforce invariants can provide I think a meaningful ergonomic gain in a C codebase.