On 06/27/2013 07:48 AM, jimjhb@aol.com wrote:
>
> Bottom line is most other languages allow early termination of for loops
> without breaking out of them. Python does not.
If they are terminating early, then they most certainly are breaking out of
them, regardless of whether the word 'break'
is used.
Yes, but the control flow (and location of the control) is different. All this "don't use breaks" stuff can be traced back to E.W Dijkstra and structured programming. Structured programming remains in a lot of mindsets today.