Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop with post-condition #1

Open
data-man opened this issue Apr 25, 2020 · 2 comments
Open

Loop with post-condition #1

data-man opened this issue Apr 25, 2020 · 2 comments
Labels

Comments

@data-man
Copy link
Contributor

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

I propose repeat/until as in Pacal & Lua.

The great project, thank you!

@Vexu
Copy link
Owner

Vexu commented Apr 25, 2020

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.

@data-man
Copy link
Contributor Author

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.

@Vexu Vexu added the proposal label Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants