Skip to main content

Questions tagged [do-while]

Use for questions about `do while` loops, which are like while loops except it checks the condition only after the first iteration.

Filter by
Sorted by
Tagged with
9 votes
1 answer
519 views

Parsing `do`-`while`, `while`-`do`-`end` and `do`-`end`

Consider the Lua programming language, which has the following constructs involving the keywords do and end: ...
Luatic's user avatar
  • 330
18 votes
7 answers
1k views

What are the pros and cons of having do ... while loops?

One somewhat rarely used, but still occasionally handy, feature of many programming languages is do ... while loops: ...
rydwolf's user avatar
  • 4,582