News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ (2010) by newacctjhro on Sunday November 04, 2018 @04:05AM (#18374967)
> Ugh if you read the article, you would know that the UB described here is the same in Rust.

Rust doesn't have a formal memory model yet, but it's already known that UB in Rust is quite restricted:

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

Most importantly, UB in Rust should only arise if you're writing unsafe code (barring compiler bugs). Typically, most Rust code is safe. This is a huge win.

There are no comments on this comment yet.