Defending the ternary operator

Laura Creighton lac at strakt.com
Mon Feb 10 11:03:13 EST 2003


Jeremy Fincher
> I may be alone in this, but I find
> 
> if condition:
>    do_something()
> 
> To be significantly more readable than:
> 
> if condition: do_something()
> 
> The indentation shows me the control stucture much better.  An
> if-expression would make the latter far more common than it already
> is.
> 
> Jeremy

You aren't alone.  Far from it.  

Laura





More information about the Python-list mailing list