[Python-ideas] PEP 315: do-while

Guido van Rossum guido at python.org
Wed Jun 26 22:54:41 CEST 2013


What misery. :-)

--Guido van Rossum (sent from Android phone)
On Jun 26, 2013 1:48 PM, <jimjhb at aol.com> wrote:

> Sounds good to me.  Just let people know it's OK to use breaks!!!
>
>  MISRA-C 1998 (I know it's C, but people extrapolated that to other
> languages) banned continues and breaks.
> MISRA-C 2004 allowed for one break in a loop.
>
>  But by that point the damage had been done.  Now there are lots of folks
> out there that have been trained to NOT use break and continue (ever), even
> in Python.
>
> So the notion was an attempt to deal with that perhaps unreasonable, but
> still actual, reality.
>
>  -Jim
>
> -----Original Message-----
> From: Guido van Rossum <guido at python.org>
> To: jimjhb <jimjhb at aol.com>
> Cc: lukasz <lukasz at langa.pl>; python-ideas <python-ideas at python.org>
> Sent: Wed, Jun 26, 2013 4:41 pm
> Subject: Re: [Python-ideas] PEP 315: do-while
>
>  FWIW I'm against adding anything along these lines (the motivation is
> the same as what I wrote before).
>
> On Wed, Jun 26, 2013 at 1:25 PM,  <jimjhb at aol.com> wrote:
> > Just to clarify, PEP 315 had to do with a do-while concept (to make common
> > use of pre-while code that
> > often exists) and not  the (dubious) issue of:
> >
> > for X in listY while conditionZ:
> >
> > or
> >
> > for X in listY and conditionZ:
> >
> > (fwhile)
> >
> > Right?
> >
> > There seemed to be some confusion, but maybe they are related, but I'm not
> > sure how....
> >
> > -Jim
> >
> >
> > -----Original Message-----
> > From: Łukasz Langa <lukasz at langa.pl>
> > To: Guido van Rossum <guido at python.org>
> > Cc: Python-Ideas <python-ideas at python.org>
> > Sent: Wed, Jun 26, 2013 11:40 am
> > Subject: Re: [Python-ideas] PEP 315: do-while
> >
> > On 26 cze 2013, at 17:03, Guido van Rossum <guido at python.org> wrote:
> >
> > Please reject the PEP. More variations along these lines won't make the
> > language more elegant or easier to learn. They'd just save a few hasty folks
> > some typing while making others who have to read/maintain their code wonder
> > what it means.
> >
> >
> > Done. PEP 315 has been rejected.
> >
> > http://hg.python.org/peps/rev/21deefe50c51
> >
> > --
> > Best regards,
> > Łukasz Langa
> >
> > WWW: http://lukasz.langa.pl/
> > Twitter: @llanga
> > IRC: ambv on #python-dev
> >
> > _______________________________________________
> > Python-ideas mailing list
> > Python-ideas at python.org
> > http://mail.python.org/mailman/listinfo/python-ideas
> >
> >
> > _______________________________________________
> > Python-ideas mailing list
> > Python-ideas at python.org
> > http://mail.python.org/mailman/listinfo/python-ideas
> >
>
>
>
> --
> --Guido van Rossum (python.org/~guido)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130626/2d2ab178/attachment.html>


More information about the Python-ideas mailing list