Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

goto, not much worse than break/continue

Name: Anonymous 2005-02-21 17:56

Discuss.

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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List