4 ms·
I'll be that guy who mentions Rust. It's linkable with C. It has first-class support for discriminated unions. Very powerful automatic cleanup. Library of mini
by pornel 10y ago
I'll be that guy who mentions Rust.
It's linkable with C. It has first-class support for discriminated unions. Very powerful automatic cleanup. Library of minimal-overhead common data structures. Plus immutability, and a few more things heavily inspired by functional languages.
So instead of a bit odd, not-quite-portable C macros I wholeheartedly recommend using a bit odd, not-quite-portable Rust instead.
- kartD 10y agoSeconded, I think Rust is an excellent choice for writing new code in large C code bases. The compiler catches so many memory bugs, I think it's a worth using. I think it'll help more people contribute to open source as well. They're less likely to add new bugs or security risks.