Usually, you'd use a while loop for a never ending loop (like for a service). I can't think of any reasonable use for a never ending for loop. Since for loops check a condition and perform an increment (or, in C languages, perform another action) it'd be kind of wasteful to use it in place of a while (true).
|