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
10
u/ts826848 Oct 25 '24
OK, I think I understand what you mean by "breaking the type system" now. It's not quite clear to me how the changes you propose are substantially different from what Safe C++ does, though:
non_invalidatingor change the implementation as necessary. Congratulations, you just created stdlib v2.In short, those changes are basically doing exactly what you complain Safe C++ does. The only difference is that Safe C++ chose to use new types/APIs for its new concepts while you chose to change things in-place.
Putting it another way, if Sean had changed the semantics of pointers/references in-place and changed the API of the stdlib in-place that that would have been acceptable?