Hacker News new | past | comments | ask | show | jobs | submit login

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:

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.





Yeah, this has nothing to do with FP. No idea what the parent was going for...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: