Sorry if my remark gave offense... but my point is that both for and foreach deal equally well -- and effectively identically -- with Linguist's problem as indicated by the example code in my previous post. Each will cheerfully increment and/or bounds-check (stricken when I engaged brain and realized that I haven't offered an example of bounds-checking in a Perl-style for loop nor can I think of one now) with either C-style or Perlish iterators.
You believe your mnemonic use of different words is useful to you. I, therefore, believe that para 1 is probably absolutely valid for you. My objection is that para 1 of your earlier post is only a personal opinion (as is this para and the next)... and is phrased in a manner likely to be "misleading" on any question of functionality.
"Yes," "ja" and "oui" are equivalents even though they are different words ... but addressing a multi-lingual audience it would surely be unwise to suggest that English speakers would be better served in daily life by using "oui" or that Germans should say "oui" or "yes" as an affirmative.
In reply to Re^4: looping in 2d array
by ww
in thread looping in 2d array
by Linguist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |