On Wed, 18 Apr 2001 10:21:00 +0100, Toby Dickenson <tdickenson at devmail.geminidataloggers.co.uk> wrote: >Dennis Baker <drbaker at softhome.net> wrote: > >>On Tue, 17 Apr 2001 18:37:46 GMT "Fredrik Lundh" <fredrik at pythonware.com> wrote: >> >>) Dennis Baker wrote >>) > ) while 1: >>) > ) set up for this cycle >>) > ) if c: break >>) > ) whatever needs to be done > > >>I suppose this is a product of my Structured Programming coursework, I simply >>avoid constructs like this. I was taught that loops and functions should have >>one entry point and one exit point. > >But it does have one entry point and one exit point! Count 'em: > >while 1: <--- one entry point > set up for this cycle > if c: break <--- one exit point > whatever needs to be done <----- another exit point > > > >Toby Dickenson >tdickenson at geminidataloggers.com
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