Readilywhile
Readilywhile is a term found in discussions of programming language design to describe a hypothetical loop construct intended to improve readability for patterns that combine data acquisition with conditional repetition. It is not an established feature of mainstream languages but has appeared in design notes and speculative proposals as a way to express polling or streaming patterns more clearly than a traditional while loop.
Semantics and variants. In most sketches, readilywhile resembles a standard while loop with a guard that is
Example (illustrative pseudocode): readilywhile (hasMore()) { item = readNext(); process(item) } Another variant binds the next read to the
Rationale and criticisms. Proponents argue readilywhile can reduce boilerplate in input-driven loops and make intent more
See also: while loop, do-while loop, streaming data patterns, language design.