I use a mix of both. If I need to know the actual index in the loop for something I'm doing, the first works. If I'm just iterating over the elements and don't necessarily need to know the index, I use the second.
In reply to Re: Style and Preference on Loops
by VinsWorldcom
in thread Style and Preference on Loops
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |