nayuki 7 days ago

> no popular language created in the past 30 years makes heavy use of UB

Yeah, I'm happy that Rust's list is relatively short, with approximately 10 items on it: https://doc.rust-lang.org/reference/behavior-considered-unde...

Also relevant reading: https://doc.rust-lang.org/nomicon/what-unsafe-does.html

1
steveklabnik 7 days ago

That list for Rust is not necessarily comprehensive. What matters more than the number is the segregation; you can’t cause UB from safe rust, only unsafe rust.