139. Grader domains sized by the judge (2026-11-21)
- Decision. In a
@gradermodule,domain Rowwith no range is sized by the first grader call that binds a[Row]Targument; later bindings must match, and use before binding traps. Seedesign/spec/32-graders-bundling.md. - Why. IOI-style tasks hand sizes to
init, while module state (var home: [Col]?Node) must be typed over those index spaces at module level. A genericfn init<domain Row>ends with the call; a modulevar nread bydomain Row = 0..nwould fix the size at declaration time. - Reverse. Require
domain Row = 0..ninside each grader fn and pass state explicitly.