News for hackers. Stuff that matters.
Re:Recursion is lying to you by LPisGood on Tuesday July 28, 2026 @05:51PM (#49090404)
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.
Re:Recursion is lying to you by palata on Tuesday July 28, 2026 @05:54PM (#49090427)
Bad code is hard to read, that is orthogonal to the fact that it is recursive.
Re:Recursion is lying to you by tikhonj on Tuesday July 28, 2026 @06:27PM (#49090829)
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.
Re:Recursion is lying to you by LPisGood on Tuesday July 28, 2026 @06:33PM (#49090890)
Oh don’t worry it had more than a half dozen of those nested as well