Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 370 Bytes

prefer-while.md

File metadata and controls

13 lines (7 loc) · 370 Bytes

Pattern: Missing use of while loop

Issue: -

Description

Prefer while loops instead of for loops without an initializer and incrementor.

Rationale: Simplifies the readability of the loop statement, while maintaining the same functionality.

Further Reading