This repository was archived by the owner on Dec 13, 2023. It is now read-only.
Operator do-while vs while #3747
willardwang
started this conversation in
Ideas
Replies: 2 comments
-
|
For example, if I want to loop through an array, in order to avoid an exception when the array length is 0, I need to determine the length with the switch and then use the do-while |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @willardwang I think this will be a good feature addition. We will prioritize this and if you have ideas happy to collaborate on this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,Whether it is possible to support while directly, instead of using do-while+switch to implement while in disguise。From programming experience, while is more commonly used than do-while。
Beta Was this translation helpful? Give feedback.
All reactions