diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 15:15:20 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 15:21:14 +0000 |
| commit | 5a5a14be5e2683a42906da4b2ad19690e230c871 (patch) | |
| tree | 2b039a41a7ffe9ed193f88218e94d324c9fa43fd /doc | |
| parent | 64622b737f070b377fdef3fb31a67c084457bd7b (diff) | |
feat(codegen): short-circuit AND and OR
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/language/keyword/cpsc-keyword-and.7.md | 2 | ||||
| -rw-r--r-- | doc/language/keyword/cpsc-keyword-or.7.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/language/keyword/cpsc-keyword-and.7.md b/doc/language/keyword/cpsc-keyword-and.7.md index 7da90b7..52b0a9a 100644 --- a/doc/language/keyword/cpsc-keyword-and.7.md +++ b/doc/language/keyword/cpsc-keyword-and.7.md @@ -12,7 +12,7 @@ left AND right # DESCRIPTION -Return BOOLEAN: true when both operands are true. Both operands must be BOOLEAN; numbers and characters are rejected. Both operands are evaluated; AND does not short-circuit. AND binds more tightly than OR and less tightly than comparisons. Use parentheses for clarity. +Return BOOLEAN: true when both operands are true. Both operands must be BOOLEAN; numbers and characters are rejected. AND short-circuits: the right operand is evaluated only when the left one is true. AND binds more tightly than OR and less tightly than comparisons. Use parentheses for clarity. # EXAMPLE diff --git a/doc/language/keyword/cpsc-keyword-or.7.md b/doc/language/keyword/cpsc-keyword-or.7.md index 678ff19..986044e 100644 --- a/doc/language/keyword/cpsc-keyword-or.7.md +++ b/doc/language/keyword/cpsc-keyword-or.7.md @@ -12,7 +12,7 @@ left OR right # DESCRIPTION -Return BOOLEAN: true when either operand is true. Both operands must be BOOLEAN; numbers and characters are rejected. Both operands are evaluated; OR does not short-circuit. OR binds less tightly than AND and comparisons. +Return BOOLEAN: true when either operand is true. Both operands must be BOOLEAN; numbers and characters are rejected. OR short-circuits: the right operand is evaluated only when the left one is false. OR binds less tightly than AND and comparisons. # EXAMPLE |
