A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/097526.html below:

LOOP wisdom found (was: do...until wisdom found)...

LOOP wisdom found (was: do...until wisdom found)... LOOP wisdom found (was: do...until wisdom found)...Courageous jkraska1 at san.rr.com
Wed Apr 18 02:05:12 EDT 2001
>(Make believe a newbie is learning to program computers.)  "break"-- well?  What
>does this mean?  "If I type 'break', will it crash the computer?"  The keyword
>"break" is a "hold-over" from a previous language.
>
>Now, a loop "in the _nature_ of a while loop" would look like this:
>
># do the test before the body, just like "while"--
>loop:
>    if condition: leave

Well, if I were writing some new language, I might favor:

loop:
	if [condition]: stop-looping

... or some other EXTREMELY CLEAR idiom.

C//



More information about the Python-list mailing list

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