3 ms·
Python is an imperative language. ...as are many others with the conditional operator's operands in the normal (condition, true-case, false-case) order: https
by userbinator 10y ago
Python is an imperative language.
...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 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.
- jolux 10y agoYeah, this has nothing to do with FP. No idea what the parent was going for...
- pjvandehaar 10y agohttps://en.wikipedia.org/wiki/%3F%3A https://en.wikipedia.org/wiki/%3F%3A