[Python-ideas] "While" suggestion

Guido van Rossum guido at python.org
Thu Jul 3 18:15:28 CEST 2008

On Thu, Jul 3, 2008 at 8:45 AM, Facundo Batista
<facundobatista at gmail.com> wrote:
> 2008/7/3 Fred Drake <fdrake at acm.org>:
>> The "while <expr> as <var>:" for has a certain level of attraction, because
>> it does deal very well with a very common case, but I don't know that it
>> would make that much difference in my code.
> Note that what I like in it is *not* that it solves a lot of cases,
> but that it makes the syntax more coherent, and solves a common case
> in the way, :)

That's not how I would define "coherent". It adds one more special
case. See the zen of Python for that.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-ideas mailing list