destinationwhile
Destinationwhile is a term used in theoretical discussions of programming language design to describe a loop-like control-flow construct that targets a specific destination or component during iteration. Unlike a plain while loop, destinationwhile couples the continuation condition with an explicit destination, guiding where control should be directed after each iteration. The concept is often explored in the context of distributed or dataflow-style languages where work units move between subsystems.
In practice, destinationwhile envisions a loop that executes while a condition remains true, but the body of
A typical destinationwhile construct would specify both the destination and the condition. For example, a pseudo-syntax
Use cases discussed in literature include modeling asynchronous task pipelines, distributed workflows, and data-processing graphs where
See also: while loop, dataflow programming, distributed systems, cooperative multitasking.