News for hackers. Stuff that matters.
Re:Mindset Shifts for Functional Programming by zelphirkalt on Wednesday April 05, 2023 @02:38PM (#35458625)
> The only advantage of the for loop in this case is that there won't be stack overflow, but overall the recursive version will actually be faster.

In languages, which have realized the value of recursion, a stack overflow does not happen. For example: https://docs.racket-lang.org/guide/Lists__Iteration__and_Rec...

Re:Mindset Shifts for Functional Programming by soegaard on Thursday April 06, 2023 @01:39PM (#35471736)