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
3
u/kammce WG21 | πΊπ² NB | Boost | Exceptions Oct 26 '24
> I hope you change your mind about that.Β
I hope so too.
> Adding Safe C++ would not prevent you from continuing to write C++ without the safety feature on. What it does is enable people who either want those safety guarantees from personal preference or from government/regulatory/peer pressure to continue to use C++ via the Safe C++ extensions.
Yeah, I'm not against adding some sort of improved safety model to C++. I just don't like Sean's proposal. But maybe the committee process and feedback will result in something that is more palpable.
> whether they want to or not, but adding the possibility of turning on those guarantees does not force anyone to stop using C++ in the way they have always used it.
I'm not a fan of that thought process, because then anyone could argue "well you don't have to use that feature." I think that would result in far too many proposals getting into the standard.
> I feel the same way about exceptions that you seem to feel about Safe C++, but I wouldn't try to write exceptions out of the language just because I wouldn't want them in my codebase.
No its a bit different. A closer approximation would be advocating for exceptions in Rust. But I wouldn't because they made a decision about how they wanted to write their code. I do see the benefit of using exceptions in Rust in order to improve their binary size and performance, but I'll leave them to decide if thats useful to them.