[Python-ideas] PEP 315: do-while

jimjhb at aol.com jimjhb at aol.com
Thu Jun 27 18:53:25 CEST 2013





-----Original Message-----
From: Ethan Furman <ethan at stoneleaf.us>
To: python-ideas <python-ideas at 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 at 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 at python.org
http://mail.python.org/mailman/listinfo/python-ideas

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130627/ea2814b6/attachment.html>


More information about the Python-ideas mailing list