Skip to content
New issue

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

Remove "short-circuit" disclaimer from readme #184

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

Techn1x
Copy link
Contributor

@Techn1x Techn1x commented Jul 21, 2023

Resolves #143

Comment on lines -28 to +30
and | `if (a && b)`* | `{{if (and a b)}}` | Yes |
or | <code>if (a &#124;&#124; b)</code> * | `{{if (or a b)}}`     | Yes |
xor | <code>if (a && !b &#124;&#124; !a && b)</code>* | `{{if (xor a b)}}` | No |
and | `if (a && b)` | `{{if (and a b)}}` | Yes |
or | <code>if (a &#124;&#124; b)</code> | `{{if (or a b)}}`     | Yes |
xor | <code>if (a !== b)</code> | `{{if (xor a b)}}` | No |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or, and do now short-circuit

for xor I felt writing it this way, how the helper is actually implemented, was clearer than needing to describe short-circuiting behaviour. It's clear that both a and b would be evaluated for this expression

@SergeAstapov
Copy link
Collaborator

Thank you @Techn1x !

@SergeAstapov SergeAstapov merged commit 204629c into jmurphyau:master Aug 2, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update README to note that or, and and xor **do** short-circuit
2 participants