Defending the ternary operator
Paul Rubin
http
Mon Feb 10 01:56:37 EST 2003
"Andrew Dalke" <adalke at mindspring.com> writes:
> > Yes, it's clearer as originally written, no problem with getting
> > something swapped.
>
> I don't understand this. You say the original expression is
> clearer than my rewrite? Or should that "as" be a "than"?
I mean the original version was clearer than the rewrite.
> > And so on for other examples...
>
> And so on? So the original C++ uses were better than the
> alternative versions I suggested were Python available?
If I remember correctly, I liked the original versions better than the
rewrites in most but not all of the examples. I didn't feel like
going on analyzing every last one of them.
More information about the Python-list
mailing list