2 ms·
> Why? I find recursive functions are often simpler to understand and write than iteration. For simple recursive algorithms, that's true. And those tend to ov
by ajross 9y ago
> Why? I find recursive functions are often simpler to understand and write than iteration.
For simple recursive algorithms, that's true. And those tend to overlap well with ones which don't require assisted tail call tagging or whatever.
Those that do, however, tend to be pretty complicated. And the set of programmers who can understand an interative implementation of them is IMHO rather larger than that which can get their heads around the tail call analysis to know how (and when!) to make it work.