Cameron Simpson wrote: > On 21Jan2009 14:02, Tres Seaver <tseaver at palladion.com> wrote: > | Vitor Bosshard wrote: > | > BTW, there is already an "until" keyword in python, it's called "while not" ;) > | > | 'until' is used at least in some languages (Pascal, Modula*, maybe Ada?) > | for a "terminate at bottom" loop (one guaranteed to run at least once): > | in such cases, the predicate has the negative sense. > > This is a particular flavour of "do ... while" which just happens > to read a little better in English. It does sometimes bother me that > Python doesn't have do...while when I find my self replicating the loop > bottom above the loop. Adding a do-while construct to Python has already been proposed: http://www.python.org/dev/peps/pep-0315/ It was merely deferred due to only garnering lukewarm support and lack of a reference implementation rather than actually being rejected: http://mail.python.org/pipermail/python-dev/2006-February/060718.html Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia ---------------------------------------------------------------
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4