cpp-best-practices / cpp-best-practices/cppbestpractices
When/how to use asserts
未關閉
- 主要語言
- 沒有語言資料
- 星號
- 8.8k
- 分支
- 902
- PR 合併指標
- 30 天內沒有已合併 PR
描述
There's a really good point in [Style.md](https://github.com/lefticus/cppbestpractices/blob/master/03-Style.md) on how not to use asserts, but should we document when to use them as well? I think the c++ usage is quite different to other languages, where asserts are used for test code but not for dev code.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Read the existing guidance in Style.md and review the issue discussion about assert usage. Clarify the intended C++ guidance for when asserts are appropriate, then document the agreed recommendation alongside the existing advice on when not to use them.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100