For review: PEP 308 - If-then-else expression

holger krekel pyth at devel.trillke.net
Sat Feb 8 21:41:00 CET 2003


Dave Brueck wrote:
> On Sat, 8 Feb 2003, holger krekel wrote:
> 
> > Actually, in my book people gave quite some good reasons
> > for opposing the PEP:
> >
> >     a) it reads ugly especially in non-assignment statements
> 
> But this is entirely subjective - obviously you can have that opinion, but
> in and of itself it carries no more weight than the opposing opinion that
> it reads well. :)

In my other posting (to this thread) i ended with

    I guess that the "design prinicples" of python in

        http://www.python.org/dev/culture.html

    are mostly subjective categories, too, then.
    That's ok but i *like* them :-)

So i am not claiming that the cited reasons are "objective"
but still they are good reasons because they are based
on the commonly appreciated "design principles". 

And sure, readability is subjective.  Some people even claim
they have no problems reading perl code.  I do <wink>.  

I guess i appreciate it if other programmers are kindly enforced
to use indentation to express their intention regarding
conditional computations in an expression. 

Of course, myself i would only use it wisely. hehe.

    holger





More information about the Python-list mailing list