PEP308: Proposing function-call syntax

Neil Hodgson nhodgson at bigpond.net.au
Mon Feb 10 14:14:02 CET 2003


John Roth:
> "Neil Hodgson" <nhodgson at bigpond.net.au> wrote in message
> ...
> >    I'd like it tobe a completely normal built in function.
> ...
> The difficulty is that other people
> reading the program might expect lazy evaluation, and get hung
> up when they update your program.

   Why would they expect lazy evaluation? Other Python functions don't
provide lazy evaluation so no one should expect it. Adding 'ifelse' (or
'iif') to the standard builtins makes it easy to use without bothering to
import a module or set up an environment so suits the people requiring
brevity.

   Neil






More information about the Python-list mailing list