8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draft
Sorry, something went wrong.
Category Maintainability Code Snippet inspect(0.0 / 0.0 != 0.0 / 0.0, content="true") // NaN != NaN Recommendation Add more comprehensive comments explaining NaN behavior and add a note about IEEE 754 floating-point standard compliance Reasoning NaN behavior can be unintuitive for developers. Adding more context about why NaN != NaN and other special cases would improve documentation quality and help prevent confusion.
Category Maintainability Code Snippet inspect(42.0.to_int(), content="42") inspect((-42.5).to_int(), content="-42") Recommendation Standardize the style of numeric literals in examples. Either consistently use parentheses for negative numbers or not: -42.5 vs (-42.5) Reasoning Consistent style in documentation examples makes the code more readable and helps establish coding conventions for the language.
-42.5
(-42.5)
Category Correctness Code Snippet inspect(1.0 / 0.0, content="Infinity") Recommendation Add warning comments about division by zero operations and explain when they might be appropriate or dangerous Reasoning While floating-point division by zero is defined behavior returning Infinity, it's important to warn developers about potential issues in production code.
6e98dd4
909e3ec
try to fix double print in windows
32953da
bb892f7
Successfully merging this pull request may close these issues.