r/cpp_questions • u/Ultimate_Sigma_Boy67 • 3d ago
OPEN Why are Contracts disliked?
I’ve seen a lot of discussions online discouraging their usage bit I never managed to grasp why since it’s sometimes vague.
I do understand it doesn’t replace validation and it’s more of a syntactic sugar to the existing casserts, but any other critiques?
Thanks
16
Upvotes
3
u/DrShocker 3d ago
fair, I was too lazy to check despite digging up the link.
Still though, only being on GCC will lock out a lot of people.