Re:A Story to Explain Genetic Algorithms
by monochromatic on Saturday February 16, 2013 @10:24AM
(#5231706)
I've seen it before, but it's a little jarring. Not sure what's wrong with just using i.
[ Parent
| on HN ]
Re:A Story to Explain Genetic Algorithms
by jdiez17 on Saturday February 16, 2013 @11:25AM
(#5231926)
It says explicitly that you don't care about that value. If you used i, for example, you wouldn't know whether the loop depended on the iteration number.
Re:A Story to Explain Genetic Algorithms
by monochromatic on Saturday February 16, 2013 @12:49PM
(#5232290)
Yeah, I get it. And that's a useful thing to do, I guess. It just seems a little... unpythonic.
Re:A Story to Explain Genetic Algorithms
by randomsearch on Saturday February 16, 2013 @05:11PM
(#5233241)
To avoid unused variable warnings.