else clauses in while and for loops

Blake Winton bwinton at tor.dhs.org
Mon Apr 17 15:08:53 EDT 2000


On Fri, 14 Apr 2000 20:09:52 -0400, Chuck Esterbrook wrote:
>Jonathan Giddy wrote:
>> Just like there's no "real need" for tuples (use lists), for loops (use
>> while), or elif (use else: if).
>>
>> All of these concepts are redundant in the sense that they can be mimicked
>> using an alternative sequence of code.  But they're nice because they
>> express higher-level concepts about the algorithm.
>
>I'm aware of all of this. In fact, I think we could all get our work
>done with ADD, NEG, JMP and JMPZ.   :-) But no thank you.

Heck, didn't someone prove it was possible to write a single-instruction
computer?  Decrement and Jump If Not Zero, was the instruction, IIRC.

Later,
Blake.
-- 
2:51pm up 19 days, 15:25, 1 user, load average: 1.00, 1.00, 1.00



More information about the Python-list mailing list