2 ms·
Having to create a function where a simple expression would suffice is "typing in mittens" programming...
by IlliOnato 3y ago
Having to create a function where a simple expression would suffice is "typing in mittens" programming...
- kevindamm 3y agoFair enough.. I actually use ternary sometimes, especially in brief return statements, and especially when both results are simple values. I only really avoid it when the result expressions are multiline. I just felt like pointing out the obvious when I saw GP's comment.