DEV Community

Discussion on: We don't need a ternary operator

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

Python's ordering is backwards. IT breaks the standard if-then logic and chooses then-if wording. I really dislike the Python way of handling this.

Collapse
 
pzelnip profile image
Adam Parkin

That's interesting, I tend to think about conditionals the same way it is in Python, ie "do this thing if something is true otherwise do this other thing", rather than "if something is true do this thing otherwise do this other thing".

It's interesting how different people think differently. :)