r/cpp
•
u/steveklabnik1
•
Oct 24 '24
•
1
Why Safety Profiles Failed
https://www.circle-lang.org/draft-profiles.html
180
Upvotes
View all comments
Show parent comment
22
u/foonathan Oct 25 '24
Yes, but that is a massive change in the way C++ works. I thought profiles meant to avoid this sort of thing?
Oh, don't get me wrong, I'm not in favor of adding Rust style references to C++ either. My opinion is to embrace checking the low-hanging fruit with false negatives but as little false positives as possible. This does not make C++ guaranteed safe, but it catches common bugs. If you want guaranteed safety, use Rust.
But this hand-wavy "profiles can make C++ code guaranteed safe, and it's gonna be great, and we all get a pony" stuff by Herb and Bjarne is disingenuous. Show me an implementation, I'd be glad to be proven wrong. Right now it's at the "draw the rest of the owl" stage.