I'm learning Rust for work right now, and I have to say that I've only ever had awful experiences with the C preprocessor. I avoid its use wherever I can except for very simple #defines (and in a...
I'm learning Rust for work right now, and I have to say that I've only ever had awful experiences with the C preprocessor. I avoid its use wherever I can except for very simple #defines (and in a lot of cases those can just be const static). Seeing the Rust macros, while still a little messy, is a marked improvement.
And also seeing how simple the C/Rust interop is is very encouraging, and totally unrelated to plans I have to take over the worldrewrite some awful old work code in Rust. Totally unrelated. Honest.
I'm learning Rust for work right now, and I have to say that I've only ever had awful experiences with the C preprocessor. I avoid its use wherever I can except for very simple
#define
s (and in a lot of cases those can just beconst static
). Seeing the Rust macros, while still a little messy, is a marked improvement.And also seeing how simple the C/Rust interop is is very encouraging, and totally unrelated to plans I have to
take over the worldrewrite some awful old work code in Rust. Totally unrelated. Honest.