4 ms·
I see the distinction. It's not a blocking call, and can't return a value to the original caller, so it might not be correct to call it recursion. (Also, I'm
by IsaacSchlueter 17y ago
I see the distinction. It's not a blocking call, and can't return a value to the original caller, so it might not be correct to call it recursion. (Also, I'm using "recursion" rather loosely here—as we've seen in the recent Guido-vs-TCO debate, not all tail calls are tail recursion. Often when I'm using this pattern, the function isn't calling itself, but rather some other function, such as an event that fires another event when it's done.)
So, maybe you're suggesting that the name should not include "recursion"? Still, it would be worthwhile to have a name for this pattern, no? What would you call it?