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

The ternary operator is one of my favorites because it acts like 'if' in a functional language (eg. it always returns a value)



'if's returning a value is from expression oriented languages, not just functional. Functional languages are by necessity expression oriented because it makes no sense to have a statement in a functional language. However, not all expression oriented languages are functional.




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

Search: