Skip to content

README: state the exact-only calc folding rule - #213

Merged
samoht merged 1 commit into
mainfrom
readme-calc-fold-invariant
Jul 29, 2026
Merged

README: state the exact-only calc folding rule#213
samoht merged 1 commit into
mainfrom
readme-calc-fold-invariant

Conversation

@samoht

@samoht samoht commented Jul 29, 2026

Copy link
Copy Markdown
Owner

--minify folds calc() arithmetic only when the fold is exactly value-preserving, but the rule was only visible in the exact_div comment, the fold_custom_calc comment and a test name. That leaves the multiplication-versus-division asymmetry looking like an inconsistency, which has twice been read as a bug and once acted on.

The rule lived only in the exact_div comment, the fold_custom_calc comment
and a test name, so the mul-vs-div asymmetry reads as an inconsistency on
first contact and has twice been mistaken for a bug.
@samoht
samoht merged commit a0d1f90 into main Jul 29, 2026
5 checks passed
@samoht
samoht deleted the readme-calc-fold-invariant branch July 29, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant