by coliveira · 6y ago · 0 comments
I don't think Rust will "get to where C++ is" (whatever that means), because (outside of compiler bugs) you will not have undefined behavior unless you use "unsafe", and most Rust code doesn't use "unsafe"; the pieces that do use "unsafe" can be carefully audited (instead of auditing the whole code).
Once an alternative Rust compiler comes onto the scene, the language will necessarily fragment too.
> Documenting an operation as undefined behavior allows compilers to assume that this operation will never happen in a conforming program. This gives the compiler more information about the code and this information can lead to more optimization opportunities.