You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This form might be misleading to beginners (such as myself) since it's not really a do-while, it's explicitly a while with an empty body and a rather complex condition. You can't break or continue in it, for example, and at first glance, the syntax kind of obscures what's actually going on.
So I would understand leaving this out so as to not encourage that kind of hack—or perhaps include it, but in the context of "This is technically possible but probably not good form."
I think it is worth mentioning that do..while loops can be achieved by prepending the body of the loop to the condition
The text was updated successfully, but these errors were encountered: