cpp-best-practices / cpp-best-practices/cppbestpractices
When/how to use asserts
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 8.8k
- Forks
- 902
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- cpp
- Domínio
- documentation
- Tipo de issue
- Documentação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100