News for hackers. Stuff that matters.
Re:Python does support if-else in lambdas... by kaens on Sunday November 09, 2008 @11:51PM (#358891)
Along with the points other people have made,

    trueaction if condition else falseaction
is marginally more clear than

    condition and trueaction or falseaction
, at least to people who aren't used to seeing and/or used like that. A lot of people, especially newer programmers, aren't used to seeing and...or used for branching that directly.

There are no comments on this comment yet.