PEP308: Yet another syntax proposal

Andrew Dalke adalke at mindspring.com
Tue Feb 11 21:37:22 CET 2003


Erik Max Francis
> Andrew Dalke wrote:
> > once every 5,000 lines or so) while an iff()-like builtin function
>
> I'm still puzzled over the choice of `iff' for this idea.  In maths, it
> means "if and only if," which is totally the wrong meaning for an "if
> this, otherwise that" function.
>
> Someone else, I believe, suggested `iif', but I _really_ can't see how
> that helps.

Well, I have a math degree, and I saw that 'iif' as 'iff'.

I've since decided to call it an 'ifelse()' builtin so that there
wouldn't be this possibility of confusion.

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list