isocpp / isocpp/CppCoreGuidelines
Division by zero in floating point arithmetic.
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 45.3k
- Forks
- 5.6k
- PR merge metrics
- No merged PRs in 30d
Description
I propose that ES.105: Don’t divide by zero should say "Don’t divide by zero in integer arithmetic"
This is to distinguish from division of floating point types for which division by zero is (I believe) well defined and sometimes useful. It seems like this is the intended meaning of the guideline based on its content though it's never explicitly said.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ES.105: Don’t divide by zero guideline linked in the issue and compare its title and wording with the proposal. Update the guideline to clarify that it concerns integer arithmetic, then verify that the rendered guideline and link remain correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100