logoalt Hacker News

locknitpicker • yesterday at 6:25 AM • 0 replies • view on HN

> Contracts are part of the memory safety story in c++

Contracts are an optional debugging tool. They are literally designed to assert pre and post conditions. They are no better than the assert macro in asserting memory safety.