192. read<T>() and a choice of fixed text cost O(1) (2026-11-22)
- Decision. In a fn's estimated cost,
read<T>()costsO(1)whenThas a fixed size, the same aslet x: T = read()(29.49). A value whose every branch is fixed text or a fixed-size value, such asif ok: "YES" else: "NO", has a fixed size, so printing it costsO(1). - Why. Both are common in the ports and were left out only because
the check looked at a declared
lettype and at the inferred typeStr. Fns in the ports and examples with an estimate: 40 of 2,183. - Reverse. Drop the
ExprKind::GenericandExprKind::Ifcases incpl-check's fixed-size checks.