thtroyer, 8 months ago I might be wrong, but the 2nd case looks like an anti pattern, the loop switch sequence . The last case looks the most readable to me. Always start with that unless there’s a clear reason not to (eg inefficient multiple nested loops).
I might be wrong, but the 2nd case looks like an anti pattern, the loop switch sequence .
The last case looks the most readable to me. Always start with that unless there’s a clear reason not to (eg inefficient multiple nested loops).