As a practical matter, only use Python's functional features in one-liners.
As a practical matter, only use Python's functional features in one-liners.
...as are many others with the conditional operator's operands in the normal (condition, true-case, false-case) order:
https://en.wikipedia.org/wiki/%3F:
I think being "functional" or otherwise has nothing to do with it. Even in imperative languages you must use expressions, and it is there that the conditional operator is most useful.
I don't get the ideal of saving space and writing huge one-liners (that in Python you'd have to break up over more lines). As they say on IRC: "if you're worried about using too many lines, I can send you a file full of blank ones."
I think the cause has everything to do with some poor choices around the parser and syntax, however, and nothing to do with its imperative nature as such.