Hacker News
points by jandrewrogers 4 days ago | 0 comments
To be clear, I have a lot of issues with the contracts proposal. I probably wouldn’t use despite living out on the standards frontier. I don’t even use C asserts already because they are not expressive enough in important ways. This proposal kind of reifies the inadequacies.

I think the risk is that C++ contracts become an evolutionary dead-end that hang around forever in code bases because they were standardized. It wouldn’t be the first time this has happened.

[–] randomNumber7 4 days ago
What do you do instead of C asserts? Throwing exceptions?
Hacker News