bog
bog copied to clipboard
Loop with post-condition
https://en.wikipedia.org/wiki/Control_flow#Loops
I propose repeat/until as in Pacal & Lua.
The great project, thank you!
I do think more different statements/control flow could be nice, but I'm not sure how useful repeat..until/do..while would be since I've never needed them.
Unfortunately, I have no convincing arguments.
However, I'm sure that most developers use while (true) with break in those languages where there are no postconditional loops.
However, these loops are useful in many cases.
E.g.:
rg "until " in freepascal/compiler or in freepascal/rtl give us a lot occurrences.