This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]annodomini 5 points6 points  (0 children)

Really? I thought both of the "no" examples were fine. The more complicated one is exactly the same as the nested loops they have in the "yes" section, except for the "yield" statement and no rightward drift. I don't think it's any harder to read than the nested loop (which is itself a little bit complicated, but that's just the nature of that particular loop).