202. Printing an array over domains costs its size (2026-11-22)
- Decision.
printandaskof arrays over domains of fixed-size values, alongside fixed-size values, cost the sum of the arrays' sizes:print(d)ford: [V]IntisO(|V|),ask("?", g)forg: [V, V]CharisO(|V| * |V|). A fn's estimated cost uses the domains' most positions, as for stdlib methods (decision 195). Lists and strings still block an estimate, since nothing bounds their size here. - Why.
printwas the most common call left blocking an estimate in the ports. Fns with an estimated cost went from 35 to 38 of the 1,066 fns the scan reads. - Reverse. Drop
io_termsandrecord_ioincpl-check'scheck/call.rs, restoring the fixed-size checks forprintandask.