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
7
u/ts826848 Oct 26 '24 edited Oct 27 '24
So you're basically proposing an API break - code that previously worked one way now does something different. I don't think it's difficult to see why this may get a frosty reception, especially considering the fact that the committee has repeatedly chosen to introduce new types instead of changing the semantics of existing code (
std::jthread,std::copyable_function, etc.).This might even be an ABI break as well. What happens if you mix code that uses the new semantics with code that was previously compiled under the old semantics? At least with different syntax it's obvious what's being used.
Edit: Potentially ODR violations as well? What happens if you compile the same template with different semantic rules?
IIRC you've complained about the object model of Safe C++ at least, which sure sounds like complaints about semantics to me.
So here's the problem: If. If you can figure out how to make this analysis work, and if that doesn't break too much code, then things may work out. How is that analysis going to work, though? The feasibility of what you propose rest entirely on the exact rules by which this analysis is done and the consequences of those rules.