Hacker News new | past | comments | ask | show | jobs | submit login

The safe subset of Rust does not permit any UB. This greatly simplifies understanding of UB in the majority of the codebase — because there isn't any. Only when there's an `unsafe` keyword in Rust, you put your "C" hat on.

(it was and continues to be a challenge to uphold this guarantee, because UB in LLVM is so ubiquitous, e.g. Rust had to patch up float to int conversions and eliminate no-op loops)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: