You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is pretty standard behavior in most programming languages - I believe the majority of users will assume that it already happens and write their code accordingly.
By not doing it, we make transactions less efficient through unnecessary evaluation.
We introduce a risk for exploits due to unexpected behavior:
Simple Summary
Add short circuiting logic to binary operations.
Motivation
Specification
Treat
and
andor
as short-circuit operators: evaluate them left to right, and stop evaluation as soon as an outcome is determined.Backwards Compatibility
This will alter behavior in contracts, but should not introduce any breaking changes.
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: