4 ms·
The ternary operator is one of my favorites because it acts like 'if' in a functional language (eg. it always returns a value)
by fleitz 15y ago
The ternary operator is one of my favorites because it acts like 'if' in a functional language (eg. it always returns a value)
- ajanuary 15y ago'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.