PEP308: Proposing function-call syntax

Neil Hodgson nhodgson at bigpond.net.au
Mon Feb 10 05:58:35 EST 2003


Anders J. Munch:

>     ifelse(condition, iftrue, iffalse)
>
> That is, use plain old function call notation, but with 'ifelse' being
> a keyword recognised by the interpreter, so that arguments are only
> evaluated as necessary.

   I'd like it tobe a completely normal built in function. That allows
inline use for cases where short circuit evaluation isn't needed. Those
cases that need to short circuit use explicit code. No new syntax.

   Neil






More information about the Python-list mailing list