proposal: Go 2: Do-While Extension to For-Loops #55868
Labels
FrozenDueToAge
LanguageChange
Suggested changes to the Go language
Proposal
v2
An incompatible library change
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Author background
Related proposals
Proposal
ForStmt
syntax.At the end of a for-loop statement, an optional
if
and a conditional expression following theif
would allow the for-loop to act similar to a do-while loop. The conditional would work as an "after-check" when the code block of the for-loop finished an iteration.Costs
The text was updated successfully, but these errors were encountered: