Hacker News new | ask | show | jobs
by rkomorn 288 days ago
Shouldn't your body be after the condition check?

Otherwise you get one iteration even if your condition was false to begin with?

1 comments

I specifically asked for a do while loop.
Oh wow. My brain entirely ignored the second do in that sentence.