7 ms·
>Recursion is easier to write And read..
by sras-me 2mo ago
>Recursion is easier to write
And read..
- LPisGood 2mo agoYou’ve never read a 5000 line recursive method that returns different numbers of arguments depending on where it chose to execute the recursive call.
- palata 2mo agoBad code is hard to read, that is orthogonal to the fact that it is recursive.
- tikhonj 2mo agoIf 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.
- LPisGood 2mo agoOh don’t worry it had more than a half dozen of those nested as well