-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
Sometimes you want to check the condition at the end and not the beginning.
do {
do_work();
} while condition
These substitutes are less than ideal:
do_work();
while condition {
do_work();
}
loop {
do_work();
if !condition { break }
}
A do while
loop would be nice in these cases.
Techcable, fbbdev, Osspial, ssokolow, j000 and 54 moreticki, kdy1, CryZe, krircc, lomirus and 1 morestepanchegstuartcrobinson
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.