Assert(): A Modern How To
Summary
The article argues for a more nuanced use of the assert() statement, outlining four areas where assertions add value: Correctness, Safety, Development, and Documentation. It includes practical examples, discusses overhead and testing considerations, and envisions an ideal assertion API with production and development modes, alongside dynamic messaging and stack traces.