Next: , Previous: , Up: SEL Coding Standards   [Contents][Index]


D.11 Map instead of iterate

Generally mapc, mapcar, mappend, and reduce should be preferred to use of the iterate macro (which should itself be preferred to loop which should never be used). In general iterate should be limited to cases where non-trivial accumulation variables or incremental state are needed. Potentially there are cases where a straightforward iterate has better indentation behavior, in which case it might be acceptable (but I can’t think of one now).