Re:What can be learned from studying long gone development p...
by lelanthran on Monday August 16, 2021 @09:53AM
(#28198075)
> The problem with C is that it doesn't have proper tail recursion, so if you want to use C as a target language for something that does have proper tail recursion, you pretty much have no choice but to make goto soup.
Or you could, you know, use a normal loop...
Besides, since 2005 or thereabouts gcc with -O2 did proper tail-call optimisation so that the stack doesn't grow on a tail-call recursion.
Or you could, you know, use a normal loop...
Besides, since 2005 or thereabouts gcc with -O2 did proper tail-call optimisation so that the stack doesn't grow on a tail-call recursion.