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

...but, in that case, the `X if Y else Z` syntax is considered to be an expression in Python. You can't, for example, omit the `else Z` part. In Haskell -- again, in which everything's an expression -- conditionals are the same, just written in the "normal" order: `if Y then X else Z`.



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

Search: