50
DARPA suggests turning legacy C code automatically into Rust • The Register
(www.theregister.com)
A community for high quality news and discussion around technological advancements and changes
Things that fit:
Things that don't fit
Rust also has powerful macros, are you sure that those can't mimic at least most uses of the preprocessor?
You're right, but:
There is the project c2rust which is being used to transpile c projects to rust. I didn't find any mentions on restrictions in this regard but I obviously agree it's a complicated issue.
I'm just not sure this is true. Maybe you and I just don't see that there is always an equivalent solution in rust macros even if it's going to be unconventional/unidiomatic use of rust macros?
Maybe so, but large part of where it will be impossible is reproducing bugs introduced by unsanitized macros in C /half joking