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

Let us all take a moment

Name: Anonymous 2014-04-15 21:47

to appreciate the underused an undervalued do-while. If I ever had a reason to use a while loop that executed before evaluating the predicate, the do-while loop is the loop I would choose.

Name: Anonymous 2014-04-17 13:29

>>20
No, but using a do-while loop avoids the need to test the cond flag
It is going to test the condition every time it reaches the end of the loop. What's the difference?

It's easier read the do-while form because there's no extra cond,
I can't believe you're having a hard time reading a goddamn if.

just a control structure which is idiomatic.
How do you break out of infinite loops? Is break not idiomatic enough for you?

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