The one gotcha it has is if you forget to add the third i to iii, then you won't get a reference error due to mistyping your variable. You will unexpectedly get the value of the previous iterator!
In a similar vein to i and ii is i1 and i2, which is ugly as hell but gives you all the benefits of the "Roman numeral" approach without the difficult-to-debug gotcha just waiting to happen.
View all comments
Show parent comment
2
u/[deleted] Jun 06 '20
sigh, that's stupid. It's obviously better to do it like i, ii, iii, iv