3 ms·
Thanks for that. Presumably you could have tail call recursion. Although if this is pre stacks, tail call detection is probably asking a bit much.
by benj111 8y ago
Thanks for that.
Presumably you could have tail call recursion. Although if this is pre stacks, tail call detection is probably asking a bit much.
- Someone 8y agoYou could, but I’m not sure the idea had been discovered yet. https://en.wikipedia.org/wiki/Tail_call#History https://en.wikipedia.org/wiki/Tail_call#History gives 1977 as its first mention (Steele’s ”Debunking the 'Expensive Procedure Call' Myth“ https://dspace.mit.edu/handle/1721.1/5753#files-area https://dspace.mit.edu/handle/1721.1/5753#files-area) Also, many tail-calling functions eventually have to return.