<div dir="ltr"><div><div><div><div><div>The null-coalescing discussion made me think about the current ternary "x = a if b else c" expression.  In normal "if / else" clauses, the "else" is optional.  I propose doing the same thing with ternary expressions (although I don't know what the result would be called, a "binary expression"?)<br><br></div>The idea would be to allow this syntax:<br><br></div>x = a if b<br><br></div>Which would be equivalent to:<br><br></div>x = a if b else x<br><br></div>I think this would be useful syntax.  In particular, I see it being useful for default value checking, but can also be used to override the result of particular corner cases from functions or methods..<br></div>