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
9
u/Miserable_Guess_1266 Oct 25 '24
The point is that the subset chosen in the paper being responded to doesn't detect all unsafety. It has false negatives, hence not 100% safe.
Could you define a subset that's 100% safe using profiles? Absolutely! But the paper also shows that the current subset already gets false positives on tons of idiomatic code (operaror[] is one example given). So arguably the current subset is already not restrictive enough to be safe, yet too restrictive to allow idiomatic c++.
I find this a bit dishonest. These downsides have been acknowledged by the author and surely any person discussing the proposal is aware. Just because they're not listed in every single paper surrounding the issue doesn't mean they're not a problem. They're a drawback that needs to be weighed against the advantages.