r/programming • • Feb 18 '20

C++20 is here!

https://youtu.be/AvPiGstxV_g
89 Upvotes

122 comments sorted by

View all comments

Show parent comments

-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.

5

u/[deleted] Feb 19 '20

There's actually quite a bit of tooling especially around unsafe. For anyone legitimately interested, look into miri, cargo-geiger, cargo-crev, etc.

2

u/epicwisdom Feb 19 '20

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.

-3

u/saltybandana2 Feb 19 '20

Here we are 10 years in with some jackass arguing that the advantage of rust is grep.

truly an amazing technology, rust.

2

u/epicwisdom Feb 19 '20 edited Feb 19 '20

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.

0

u/saltybandana2 Feb 19 '20

You can't do that with rust either and the fact that you think you can tells me I understand the language better than you do.

1

u/epicwisdom Feb 19 '20

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.

0

u/saltybandana2 Feb 19 '20

You can if ...

here, let me finish that for you

you can if you have actual tooling. grep aint that tooling.

1

u/epicwisdom Feb 20 '20 edited Feb 20 '20

There you go ignoring the point again. Nothing to discuss, then.