185. Rebuild holes, batch 3: reading, patterns, small grammar (2026-11-21)
- Decision.
read<Range<V>>()readsl rasl..=r;[m]in a domain declaration means0..m; an integer enum tag compares as a number; the defaultio.answersis("YES", "NO"). A record pattern without..is closed (must name every field). A product position is a tuple:let (r, c) = pandp.0work. Tuples and records derive+,-andZerofieldwise.addis the prelude name of+as a value, and everyact:/op:takes any operation value. Withact:, segment-tree nodes areIntunless annotated. Dropping a non-unit result is a lint (unused-result) unless the fn is@droppable; dropping a?Tstays an error.name<...>(opens type arguments for lowercase names. One-lineif c: s1 else: s2is a statement. A range type in[D]position may have signed ends.x min= eis a condition throughcond.std/prelude.cpis the authoritative prelude.take()exists only on types with an empty value;replace(x)covers the rest. - Why. Holes H-RANGE-READ, H-DOMAIN-COUNTED-DECL, H-ENUM-TAG-INT, H-YES-WORDS, H-ROW-PATTERN, H-PRODUCT-DESTRUCTURE, H-RECORD-MONOID, H-OP-NAMES, H-NODE-WIDTH-ACT, H-DROPPED-RESULT, H-LOWER-GENERIC-ARGS, H-INLINE-IF-STMT, H-NEG-RANGE-TYPE, H-MINEQ-COND, H-PRELUDE-MEMBERSHIP and H-TAKE-DEFAULT. Each pick is the rebuild agent's own guess where it was reasonable (it is the reading a fresh contestant makes), except two: patterns are closed so a new arc field can't silently change a match, and
take()has no inventedDefaulttrait. - Reverse. Per item; open patterns and a
Defaulttrait are the two real alternatives.