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
5
u/schombert Oct 26 '24
Well, from my point of view, it is the only proposal we have. Nothing else on the table provides the necessary guarantees. So I would much rather have this proposal in the language and then iterate on and improve it in future versions (i.e. figuring out ways to minimize the need for annotations and smoothing interfacing between safe and unsafe C++) than to have nothing because it might be possible to do better. That would very much be letting the perfect be the enemy of the good.
I see this in much the same way I view the addition of lambdas to C++. Yes, they are ugly and more verbose than they could have been, but by adding them we were able to use lambdas immediately. C++ has always been a "big tent" language that has been open to supporting as many programming paradigms as possible. I don't see why compile-time safety should be an exception to that.