Re:Don't return null; use a tail call
by jonmrodriguez on Tuesday January 10, 2012 @08:12AM
(#3446814)
Nonetheless, the term "tail call" should apply to what he is talking about.
If "tail call recursion" means recursing as the last thing you do before returning, then he is saying to send a message as the last thing you do.
AKA send a message as a tail call instead of returning the value of that message.
"a 'tail call' and 'tail call elimination' are 2 completely different things."
Indeed. For those seeking more detailed information about this issue, see:
http://c2.com/cgi/wiki?ProperTailRecursion
Also a 'tail call' and 'tail call elimination' are 2 completely different things. The former being an implementation detail (to provide proper tail recursion for languages that require it, ie Scheme), the latter an optimization technique (to remove (expensive) tail calls!).