Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 400 Bytes

loops.md

File metadata and controls

13 lines (9 loc) · 400 Bytes

% Loops

Prefer for to while. [RFC]

A for loop is preferable to a while loop, unless the loop counts in a non-uniform way (making it difficult to express using for).

Guidelines for loop. [OPEN]

[OPEN] When is loop recommended? Some possibilities:

  • For optimistic retry algorithms
  • For servers
  • To avoid mutating local variables sometimes needed to fit while