В Срд, 20/07/2005 в 21:58 -0300, Facundo Batista пишет:
> On 7/20/05, Martin Blais <[EMAIL PROTECTED]> wrote:
>
> > Well, maybe you're reading a bit too litterally into that statement.
> > To me the expression is very explicitly absent :-)More seriously,
> > reading into these rules too litera
On Thursday 2005-07-21 01:22, Martin Blais wrote:
> The Rule of Least Surprise says to me that "while:" would do the least
> unexpected thing. There are only two possibilities: the test is
> implicitly false, in which case "while:" would make no sense (i.e. the
> block would be ignored). Therefo
On 7/20/05, Martin Blais <[EMAIL PROTECTED]> wrote:
> Well, maybe you're reading a bit too litterally into that statement.
> To me the expression is very explicitly absent :-)More seriously,
> reading into these rules too literally leads to funny places: I could
> ask why at the end of functio
On 7/20/05, Facundo Batista <[EMAIL PROTECTED]> wrote:
> On 7/20/05, Martin Blais <[EMAIL PROTECTED]> wrote:
>
> > it got me wondering, wouldn't it be nice if
> >
> >while:
> > ...
> >
> > behaved as:
> >
> >while True:
>
> -1
>
> Explicit is better than implicit.
Well, maybe you'
On 7/20/05, Martin Blais <[EMAIL PROTECTED]> wrote:
> it got me wondering, wouldn't it be nice if
>
>while:
> ...
>
> behaved as:
>
>while True:
-1
Explicit is better than implicit.
Regards,
.Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
El mié, 20-07-2005 a las 13:26 +1000, Anthony Baxter escribió:
> On Wednesday 20 July 2005 13:13, Martin Blais wrote:
> > it got me wondering, wouldn't it be nice if
> >
> >while:
> > ...
> >
> > behaved as:
> >
> >while True:
> > ...
>
> -1
>
> I don't expect if: or for: to m
On Wednesday 20 July 2005 13:13, Martin Blais wrote:
> it got me wondering, wouldn't it be nice if
>
>while:
> ...
>
> behaved as:
>
>while True:
> ...
-1
I don't expect if: or for: to mean anything, so why
should while: ? I don't see any advantages to it (saving
5 keypresses?
Hi
Today I typed something funny in the interactive interpreter:
>>> while:
File "", line 1
while:
^
SyntaxError: invalid syntax
it got me wondering, wouldn't it be nice if
while:
...
behaved as:
while True:
...
Since they appeared, I started using "while T