Ternary Operator or If Expression?
- by kunjaan
When is a good design decision to use the Ternary Operator over if then else clause? Are there any efficiency hit? Do they get compiled to the same code? Do you think one is more readable than the other in some cases?