Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



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.




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

Search: