4 ms·
Not always, but a lot of the time. There are also a whole bootload of things that are UB in C but have defined semantics in Rust.
by nicoburns 6y ago
Not always, but a lot of the time. There are also a whole bootload of things that are UB in C but have defined semantics in Rust.
- DSMan195276 6y agoSure, I was mostly responding to the "compiles to C vs. directly to GCC/LLVM". I don't think the difference is actually all that relevant in terms of avoiding undefined behavior, a lot of the undefined behavior situations still need to either be worked around (or accepted) when generating the IR - it's not as simple as "skip C, UB is gone".