summaryrefslogtreecommitdiff
path: root/docs/basic-arithmetic.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 14:17:14 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 14:17:14 +0300
commit9f83f4328f89ebd03c7455725e5d21fb4f4ff586 (patch)
tree73f925adc481a3dcef8ad7c6cc85f5a00e04bd64 /docs/basic-arithmetic.md
parentc8b7f1dddd63f1ef02fb9414cfcff5727e98a911 (diff)
refactor(rpn): delegate Divide() to binaryMetricOp via preCheck (oj)
Add variadic preChecks parameter to binaryMetricOp, allowing callers to run a validation on the right operand before metric resolution. This eliminates the full pipeline duplication in Divide() — it now delegates to binaryMetricOp with a preCheck that guards against division by zero.
Diffstat (limited to 'docs/basic-arithmetic.md')
0 files changed, 0 insertions, 0 deletions