On the Use of Macros for Iteration
Anthony G. Middleton · The Computer Journal · 1976
Iterative constructs are often associated with a stream of data items (a ‘data path’). This paper shows how macros can be used to allow the programmer, in certain circumstances, to request iteration in such a manner that the data path utilised is made explicit. The resulting program text is considered more natural and informative than that which might result from a straightforward application of ‘repeat’-constructs, ‘for’-constructs, etc.