2 ms·
Why avoid early returns? If something doesn't match a condition to process anything in the function, then it's cognitively better to return early and say that c
by mekster 7y ago
Why avoid early returns?
If something doesn't match a condition to process anything in the function, then it's cognitively better to return early and say that case should be left out before possibly doing anything weird in it.