No, the major advantage of the unsafe keyword is tooling, which the rust community has completely missed the boat on. Presumably because they can't look past grep.
There is some tooling, although it arguably isn't as popular as it should be. That doesn't mean that being able to grep for unsafe isn't a huge benefit, though. I did say it's one of the major advantages, not the major advantage.
If you could grep your million LOC C++ project for memory unsafety that would indeed be an amazing technology. Since you're apparently not interested in discussing the actual merits or tooling, it doesn't seem like there's much point in saying anything more.
Also what part of "one of the" != "the" do you not understand? If you're going to troll you might as well put some effort into it.
You can if you don't have external dependencies (incl. std). Or if you include those dependencies as part of your million LOC, which realistically is the case with many companies of that scale. Up to compiler bugs - but C++ has those, too, and probably much more of them.
-1
u/saltybandana2 Feb 19 '20
No, the major advantage of the unsafe keyword is tooling, which the rust community has completely missed the boat on. Presumably because they can't look past grep.