[Python-ideas] Add "goto fail" to Python?
Sturla Molden
sturla.molden at gmail.com
Thu Mar 6 06:30:01 CET 2014
David Mertz <mertz at gnosis.cx> wrote:
> This is *exactly* what Python does right now!
I know, it would by syntaxic sugar for try-except.
I am worried that Python's significant indentation might interfere with
some of the strengths of "goto fail", for example placement of code that
could be vital for national security. We might therefore need an exception
to the indentation syntax so that
if (error):
raise to fail
raise to fail
<suite>
is interpreted as
if (error):
raise to fail
raise to fail
if 1:
<suite>
Sturla
More information about the Python-ideas
mailing list