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
Should add a section on this to https://github.com/kadenzipfel/gas-optimizations/blob/main/gas-saving-patterns/short-circuiting.md with this to leave the reader with a fully optimized statement
e.g. use
if (condition) { if (anotherCondition) { ... } }
over
if (condition && anotherCondition) {...}
works for &&/||
The text was updated successfully, but these errors were encountered:
What would || look like?
||
if (condition) { ... code x } if (anotherCondition) { ... code x }
?
Sorry, something went wrong.
What would || look like? if (condition) { ... code x } if (anotherCondition) { ... code x } ?
yep! although makes me realize that the title would no longer properly apply
No branches or pull requests
Should add a section on this to https://github.com/kadenzipfel/gas-optimizations/blob/main/gas-saving-patterns/short-circuiting.md with this to leave the reader with a fully optimized statement
e.g. use
over
works for &&/||
The text was updated successfully, but these errors were encountered: