3 ms·
A long time ago I started naming mine 'ii' or some variant of 'index' for exactly the reason mentioned (wouldn't confuse search/replace). Although I often try
by Goladus 19y ago
A long time ago I started naming mine 'ii' or some variant of 'index' for exactly the reason mentioned (wouldn't confuse search/replace).
Although I often try to avoid using counters at all via foreach or recursion.