Re:Tail Call Improvements in .NET Framework 4
by bad_user on Tuesday March 09, 2010 @04:51PM
(#1179495)
If an optimization means that an algorithm reaches the desired result or not, that's not an optimization anymore.
Regardless of any available stack-space you may have, for the above method (which can be tail-call optimized) try calculating fact(1000000). If that's the requirement, then without TCO this implementation is incorrect.
[ Parent
| on HN ]