129. Compound assignment is a statement; min= / max= report improvement (2026-11-21)
- Decision.
x op= y(+=,-=,x f= yfor any two-argument fn) is a statement with no value, like plain=. The exception ismin=andmax=: as an expression they are aBool, true whenxstrictly improved (including fromnone), so relaxation readsif dist[v] min= nd: parent[v] = u. Used as a statement theBoolis discarded. Bump-and-read uses a named mutable alias, which evaluates the place once:let k = mut count[c]; k += 1. - Why. No
if x = ybugs and no evaluation-order puzzles; the one value contestants constantly test after an update ("did it improve?") has a direct spelling with one comparison, as in hand-written C++. - Rejected for now. Every
op=yielding the new value (let k = count[c] += 1): convenient, but it puts writes inside expressions; revisit with port evidence. - Reverse. Make
min=/max=plain statements, or give everyop=the new value. - Status. Accepted (Ryan, 2026-11-21); not implemented.