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
-1
u/germandiago Oct 25 '24
One thing is the subset you can verify. A different thing is leaking unsafety. And a different thing is if you can detect all unsafety.
Detecting all unsafety is very easy. Let's think of the extreme case: reject all programs. That would be safe. But useless.
Now start to add things to the safe set, even if not 100% of the language. That is also a 100% safe subset.
Those subsets would be useless, probably.
So the real question is if it is if we can find a subset with minimal deviation from current C++ that is functional.