Defending the ternary operator

Paul Rubin phr-n2003b at NOSPAMnightsong.com
Sat Feb 8 05:40:59 EST 2003


Laura Creighton <lac at strakt.com> writes:
> > On Sat, 2003-02-08 at 01:01, Laura Creighton wrote:
> > > Regardless of the reasons some people _want_  conditionals, people
> > > are going to _use_ them because they save keystrokes. The number of
> > > people who will do anything to save keystrokes is legion. 
> > 
> > Why do you lack such faith in programmers?  
> 
> Because I am one.  Because I know so many of them.  Because 'lazy
> work' and 'hurried work' has been the bane of all creators since we
> first started creating anything. 

Why do you think saving keystrokes impairs readability?  Usually, for
me at least, a shorter program is easier to read, not harder.




More information about the Python-list mailing list