I was thinking about object oriented design today, and I was wondering if you should avoid if statements. My thought is that in any case where you require an if statement you ca
Explain how to implement the following without an if statement or ternary logic:
if ( x < 5 ) { x = 0 } else { print x; }