|
|
|
|
|
by albertzeyer
611 days ago
|
|
There is an advantage of having this as syntax, which is a difference in semantics, which you couldn't get if this would just be an expression, namely: x = func1() if something else func2()
In this example, only func1() or func2() is being called, but not both. |
|