[Python-Dev] Adding a conditional expression in Py3.0
Paul Moore
p.f.moore at gmail.com
Sat Sep 24 12:16:51 CEST 2005
More information about the Python-Dev mailing list
Sat Sep 24 12:16:51 CEST 2005
- Previous message: [Python-Dev] Adding a conditional expression in Py3.0
- Next message: [Python-Dev] Adding a conditional expression in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/24/05, Terry Reedy <tjreedy at udel.edu> wrote: > Now, can you honestly say that you would (naively) read > > return foo if bar else baz > > and be certain you knew what it meant? FWIW, yes, I can honestly say that I would be certain. Yes, you may be able to *parse* it as (foo if) bar (esle baz) as well as foo (if bar) (else baz), but I know of no conceivable *semantic* meaning for "foo if" - English has no postfix if, and nor do any programming languages, except entirely postfix ones such as Forth. Paul.
- Previous message: [Python-Dev] Adding a conditional expression in Py3.0
- Next message: [Python-Dev] Adding a conditional expression in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list