Name:
deitarion
2005-02-23 20:15
I beg to differ. I find it a fun exercise to avoid break/continue. In fact, I've only ever used break once and that was in this Python loop.
for name, position in queuedFiles:
if checkCriteria(name):
print name, "queued at position", position
break
In fact, I later made it into a function called findNextWhatever() and replaced the break with a return so I guess that doesn't really count.