IFNDR
IFNDR
Posted Aug 13, 2024 17:03 UTC (Tue) by mb (subscriber, #50428)In reply to: IFNDR by kid_meier
Parent article: Rust Project goals for 2024
>that keeps being brought up here that there are no other options of handling UB other than
>the way clang/LLVM and gcc have chosen to handle
>the way clang/LLVM and gcc have chosen to handle
That's a wrong assumption already.
Compilers do not "handle" UB. They do not "see UB" and then cause havoc just because they want to.
Compilers do the *opposite* thing of that. They assume that UB is not present in the program.
They do *not* see UB in the source code and react to that. They assume it's not there.
There are plenty languages available with a sane UB or without UB. Just use them.
C/C++ are obsolete.