In the standard foreach loop, is there a common naming convention for an iterator variable?
Typically, I use currXXX, where XXX is essentially the name of what I'm looking at. I have not seen others follow this agreement, this is just what I did, as far as I remember. I see that the meaning has a name similar to what I repeat.
Any opinions? Any "official" recommendations?
foreach(var currName in names)
{
}
source
share