C#是否执行尾递归? [英] Does C# do tail recursion?
本文介绍了C#是否执行尾递归?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
为什么.net/C#不能消除尾部递归? >
C#会产生尾巴回弹吗?
Does C# do tail recusion?
我找不到任何文档来告诉我是否这样做.
I can't find any documentation telling me if it does or not.
推荐答案
C# does not innately support tail recursion in the language but here is an interesting article on a similar technique call trampolining that may help you in your situation
这篇关于C#是否执行尾递归?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文