Douglas Crockfod says that it is usually better to refactor the continue
inside the loop.
Why is continue considered bad within a loop?
The use of continue
would mean that you have insufficient conditions written in your while
.
You should instead use if
inside your while
loop, or add the condition into the while
loop.