in reply to Re: Re: Iterative vs Recursive Processes
in thread Iterative vs Recursive Processes
However I am having extreme difficulty in seeing how, even in principle, one could make your more complex approach work. One could save memory by compressing the information in the caller stack. But I fail to see how one could regenerate the intermediate results in a complex computation on demand without redoing the computation - and that only works if you readily know (which you don't in Perl) that the computation is side-effect free.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Iterative vs Recursive Processes
by hv (Prior) on May 12, 2003 at 20:31 UTC |