bcquality/community/knowledge/performance
António Silva f7a00bf0b6 Comma-group the pure value sets in the case false of sample
Review feedback: the five value sets sharing exit(false) should be comma
separated. Applied to the three that are pure field reads with no order
dependency.

The Get and the Blocked read keep their own value sets. The documentation
guarantees that the first matching value set executes, which orders matching
across separate value sets; it says nothing about evaluation within one
comma-separated set, and the natural lowering of that is an equality-or
chain — where AL's or does not short-circuit. Grouping the Get with the
checks that must precede it would rest the sample's correctness on
undocumented behaviour, which is the defect these two articles exist to
prevent.

Encodes the boundary in the Best Practice section so the grouping is applied
where it is safe and not where it is not, and scopes the repeated-exit
detection signal explicitly to nested chains so the case sample does not read
as its own anti-pattern.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-25 12:05:29 +01:00
..
boolean-operators-do-not-short-circuit.bad.al Add community knowledge on AL boolean operators not short-circuiting 2026-08-24 10:19:09 +01:00
boolean-operators-do-not-short-circuit.good.al Add community knowledge on AL boolean operators not short-circuiting 2026-08-24 10:19:09 +01:00
boolean-operators-do-not-short-circuit.md Add case true of pattern for long condition chains 2026-08-25 12:00:14 +01:00
case-true-of-for-long-condition-chains.bad.al Add case true of pattern for long condition chains 2026-08-25 12:00:14 +01:00
case-true-of-for-long-condition-chains.good.al Comma-group the pure value sets in the case false of sample 2026-08-25 12:05:29 +01:00
case-true-of-for-long-condition-chains.md Comma-group the pure value sets in the case false of sample 2026-08-25 12:05:29 +01:00