Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sras-me
· 4mo ago · 0 comments
>Recursion is easier to write
And read..
Comments
[–]
LPisGood
4mo 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.
[–]
palata
4mo ago
Bad code is hard to read, that is orthogonal to the fact that it is recursive.
[–]
tikhonj
4mo ago
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
.
[–]
LPisGood
4mo ago
Oh don’t worry it had more than a half dozen of those nested as well