News for hackers. Stuff that matters.
Re:What can be learned from studying long gone development p... by Galanwe on Monday August 16, 2021 @01:29AM (#28195194)
Would that really happen though? I don't think I would actually release recursive code.

I find recursion to be very simple and elegant for prototyping algos, but I would instinctively rewrite it with an iterative/queue form as soon as the "toy" stage is over.

Re:What can be learned from studying long gone development p... by int_19h on Monday August 16, 2021 @01:45PM (#28200781)
But why would you do that, if it's simple and elegant? Really the only answer is that it has potentially unbounded stack consumption - but tail recursion solves exactly that problem.
Re:What can be learned from studying long gone development p... by Galanwe on Monday August 16, 2021 @08:26PM (#28204669)
Not all recursive algorithms are tail recursive; not all tail recursive algorithms can be correctly identified & tail optimized.
Re:What can be learned from studying long gone development p... by int_19h on Tuesday August 17, 2021 @01:46PM (#28212675)
Right, but OP was specifically talking about tail recursion.