From d216395917cc49052c7c7094cf57f09657ca08a8 Mon Sep 17 00:00:00 2001 From: Knetic Date: Sun, 30 Apr 2017 19:28:28 -0700 Subject: [PATCH] Revised manual to be correct about short-circuiting --- MANUAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANUAL.md b/MANUAL.md index f4d2f95..e065828 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -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 `&&` `||`