Feb 16, 2024
Indeed, I assume the feature is there specifically to avoid having to put flags in the loop.
You still can put flags in the loop, and in some cases that might be the clearest way to express the programming intent.
But I wouldn't go so far as to declare the whole feature an anti-pattern that should never be used.