logoalt Hacker News

jandrewrogers • today at 4:43 AM • 1 reply • view on HN

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.


Replies

randomNumber7 • today at 9:05 AM

What do you do instead of C asserts? Throwing exceptions?