Details
-
Type:
New Feature
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Rules to specify, Subject: Uncategorized rules, Importance: Relevant, Level: Medium
-
Labels:None
Description
Taken from: https://www.teamten.com/lawrence/style/notes.html
Bad: for (;;) ... Good: while (1) ... Better:while (TRUE) ...
The "while" is clearer. The "for" loop should be reserved when looping a variable from one value to another. It is safe to define FALSE as 0 and TRUE as 1.