Skip to content

Commit

Permalink
Revised manual to be correct about short-circuiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Knetic committed May 1, 2017
1 parent 268aebc commit d216395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Prefix only. This can never have a left-hand value.

## Logical Operators

Unlike others, this library does not currently do short-circuit evaluation. The author isn't opposed to the idea, but hasn't implemented it. All logical operators evaluate both sides in their entirety before deciding what to do.
For all logical operators, this library will short-circuit the operation if the left-hand side is sufficient to determine what to do. For instance, `true || expensiveOperation()` will not actually call `expensiveOperation()`, since it knows the left-hand side is `true`.

### Logical AND/OR `&&` `||`

Expand Down

0 comments on commit d216395

Please sign in to comment.