2 ms·
If avoiding undefined behavior at all costs is important, I'm not sure C is the right choice either. Rust would also avoid exceptions and eliminate most (all?)
by gameswithgo 8y ago
If avoiding undefined behavior at all costs is important, I'm not sure C is the right choice either. Rust would also avoid exceptions and eliminate most (all?) of the undefined behavior that C has.
- steveklabnik 8y agoSafe Rust has no UB, by design, but unsafe does exist. We have a fairly short list of UB though https://doc.rust-lang.org/reference/behavior-considered-undefined.html https://doc.rust-lang.org/reference/behavior-considered-unde...