← Back to context

Comment by LPisGood

3 hours ago

You’ve never read a 5000 line recursive method that returns different numbers of arguments depending on where it chose to execute the recursive call.

Bad code is hard to read, that is orthogonal to the fact that it is recursive.

If all you do is replace the recursion in that example with one (or more) loops with mutable indexes, chances are the code will get worse.