We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&&
||
gas ops for for-loops:
++i
i++
unchecked
example of most efficient solidity for-loop:
uint256 len = arr.length; for (uint256 i; i < len) { unchecked { ++i } // logic }
The text was updated successfully, but these errors were encountered:
bagelface
No branches or pull requests
&&
/||
.gas ops for for-loops:
++i
is cheaper thani++
unchecked
to increment vars that have no risk of overflowexample of most efficient solidity for-loop:
The text was updated successfully, but these errors were encountered: