3 ms·
For the example in the article, I think I'm inclined to agree. However, with something like numIterations = 5 foo(numIterations) versus foo(5) I think addi
by Arcten 11y ago
For the example in the article, I think I'm inclined to agree. However, with something like
numIterations = 5
foo(numIterations)
versus
foo(5)
I think adding that extra variable greatly improves readability by removing the step that requires jumping to the function signature to understand what the integer argument is doing.