News for hackers. Stuff that matters.
Re:Misconceptions about loops in C by Gibbon1 on Thursday June 27, 2024 @04:25PM (#40814707)
People that see programming as math get really excited about recursion.

Everyone else doesn't care, shouldn't care.

Re:Misconceptions about loops in C by timeinput on Thursday June 27, 2024 @06:00PM (#40815631)
There's this summation notation that these people who see programming as math and get excited about recursion forget about too.
Re:Misconceptions about loops in C by mbivert on Thursday June 27, 2024 @06:19PM (#40815810)
I think recursion is just another tool in the toolbox: sometimes, some solutions are easier to think of recursively, and so it makes sense to use it, at least for the first prototype.

But yeah, using it systematically (in a non-functional language) is unwise.

Re:Misconceptions about loops in C by burnished on Thursday June 27, 2024 @11:28PM (#40817422)
Hey, other kinds of needs can do and should care. Recursion is a very interesting perspective to apply to a problem and gratifying in its own right.