bog icon indicating copy to clipboard operation
bog copied to clipboard

Loop with post-condition

Open data-man opened this issue 5 years ago • 2 comments

https://en.wikipedia.org/wiki/Control_flow#Loops

I propose repeat/until as in Pacal & Lua.

The great project, thank you!

data-man avatar Apr 25 '20 10:04 data-man

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.

Vexu avatar Apr 25 '20 20:04 Vexu

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.

data-man avatar Apr 28 '20 10:04 data-man