Reply to post: Re: Explain this to me, please

Rust in peace: Memory bugs in C and C++ code cause security issues so Microsoft is considering alternatives once again

2+2=5 Silver badge

Re: Explain this to me, please

I agree with you Lee, that using 'unsafe' is unsafe but the presence of the keyword makes it easier to mitigate the risks.

So, for example, the devops toolchain can be configured to look for 'unsafe' and flag that code up for further review or extra testing. Or the dev team can be structured so that only a core set of developers work on code that needs 'unsafe'.

These aren't perfect by all means, but they are a lot easier to implement with Rust than the equivalent for C/C++.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2019