control structures (was "Re: Sins")
Aahz Maruch
aahz at netcom.com
Sat Jan 8 10:05:18 EST 2000
More information about the Python-list mailing list
Sat Jan 8 10:05:18 EST 2000
- Previous message (by thread): control structures (was "Re: Sins")
- Next message (by thread): control structures (was "Re: Sins")
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <38774EBA.40716D1E at maxtal.com.au>, skaller <skaller at maxtal.com.au> wrote: > > Current looping constructions are so bad, >that the simplest of uses cannot be expressed >using them : searching a list for an element >cannot be written correctly: > > for i in X: > if X[i]=e: goto Found > print "Not Found" > goto next > Found: ... > next > >YUKKKKKK!!! There is no natural way to do this. >We fall through the loop on failure, instead >of success. (using a flag, or testing anything >afterwards, is not acceptable as a solution). Why is using a flag or testing afterwards not acceptable? -- --- Aahz (@netcom.com) Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/ Hugs and backrubs -- I break Rule 6 The problem with an ever-changing .sig is that you have to keep changing it.
- Previous message (by thread): control structures (was "Re: Sins")
- Next message (by thread): control structures (was "Re: Sins")
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list