Re:Rust and C++ Interoperability in Chrome
by jcelerier on Thursday August 20, 2020 @03:09AM
(#24220684)
> Yes, but good luck getting that through any form of code review.
do you think more than a few percent of the "foundational" OSS projects where we find all the classical CVEs have any code review process ?
Unlike C or C++, where it can sometimes be harder to tell what the lifetime of something should be, or whether you’re extending the lifetime of a reference beyond the point that it is safe.
Unsafe definitely gives you loaded footguns... which for the umpteenth time is why it is considered a code smell. Sometimes you have to write smelly code, but it’s something to be avoided.