Word of advice, pick "for" or "foreach" and use one. Minor nit, but they're interchangable, and switching back and forth tends to make it less readable for me.Well, for me, I tend to use for for C-style loops (your first example) and foreach for the aliasing loops (your second example).
I do believe a lot of people adhere to the same concept.
In reply to Re^2: foreach to for
by bart
in thread foreach to for
by tricolaire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |