Having used it for many years, I now find val1 if cond else val2 to be minorly ugly, but not unbearably so. The fact that it’s evaluated from the middle out, instead of left to right as with C’s style, is a downside. Not a deal-breaker but it does force a re-reading in complex expressions (imagine if the condition is seldom true, and you see that the beginning of an expression will bomb - you have to go further than it to find that there’s actually a conditional check on it).
2 Likes