-----Original Message----- From: Ethan Furman <ethan@stoneleaf.us> To: python-ideas <python-ideas@python.org> Sent: Thu, Jun 27, 2013 12:43 pm Subject: Re: [Python-ideas] PEP 315: do-while 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. -- ~Ethan~ _______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas