2 ms·
"no loops means less bugs" But the loops will be clear and explicit. People can check if you have an off-by-one error. Python does not support many recursive
by jodrellblank 8y ago
"no loops means less bugs"
But the loops will be clear and explicit. People can check if you have an off-by-one error.
Python does not support many recursive calls, after "n" gets beyond a certain number, the code will crash with a RecursionError.
That is a bug which is much harder to see. The code will crash if N < 0 for the n_th() method, which is probably a bug.