I don't think I've seen it before. I might have blocked out the memory. If I need a generic variable I just use i, or j, but I prefer giving them better names when possible, like row, or x, or item_ndx.
Oh, ii is often used rather than i for iterators because it's easier to text search. Then again if you have to search for the iterator you might be doing something wrong.
That's not creative, that's "clever".
I frown on clever coding.
I wonder if other variables were named
iii
,iv
,v
, etc?Is that ... a spread operator?
nah, [...] is often used to indicate that some part was cut from a quote. I guess it doesn't translate well to code blocks.
I often do three vertical dots for this:
the
ii
name was my own addition. I was under the impression this was fairly common for indexed array iteration.I don't think I've seen it before. I might have blocked out the memory. If I need a generic variable I just use
i
, orj
, but I prefer giving them better names when possible, likerow
, orx
, oritem_ndx
.Oh,
ii
is often used rather thani
for iterators because it's easier to text search. Then again if you have to search for the iterator you might be doing something wrong.I don't think I've ever searched for an iterator variable.