I have been asking folks if loops add to cc. I think they’ve been telling me no pretty consistently, and I’m confused about that. I can see a Ruby 3.times do wouldn’t add complexity. But doesn’t a java for loop contintually check whether the iterator is or isn’t bigger than some value? Why wouldn’t that count as a conditional?
Maybe none of this matters. Maybe if I take care of duplication, expressivness, responsibility, nobody cares. But dang it, I care. ^__^
Good lord, how am *I* supposed to know?
Actually, as far as I can tell, the loop itself inherently only creates one forking path extra. The path is identified by the condition while the loop is run vs. the condition when it is stops running.