Re:How recursion got into programming: a comedy of errors
by sunfish on Wednesday July 23, 2014 @09:01AM
(#8074095)
Most C++ compilers perform TCO when convenient, but the C++ language doesn't guarantee that TCO will be done, so it's unwise to write code that depends on it. In practice, every compiler decides when to do TCO in its own way. Also, it's useful to be able to run code with optimization disabled. Also, it's easy to accidentally have a variable that needs a destructor call which makes TCO impossible. This is all in contrast to Scheme, which does give you a guarantee, and which makes it easy.
[ Parent
| on HN ]
There are no comments on this comment yet.