3 ms·
I much prefer the if/else, thanks very much.
by codeulike 7y ago
I much prefer the if/else, thanks very much.
- datavirtue 7y agoIt doesn't matter what you use. If I can't understand your code quickly I'm going t fail your code review. The use of if/else versus ternary operators is a matter of taste. If your composite of fucntions/methods reads declaritivly then the code will be easy to understand and your I dividual methods should also be small and easy to grok.