摘要: --学习书籍《Practical Clojure》1. 尾递归:不管函数式语言对于递归调用来说有多大的优势,但还是不得不面对运行环境的内存栈限制问题。所以为了应对这个问题,函数式语言采用尾递归的方式来对递归调用做最优化处理。尾递归最优是指当递归的中心条件满足时,编译器不以消耗内存栈的方式来优化递归调用,再全面一点说,就是递归调用实在编译码中被实现为迭代。Tail- call optimization means that , if certain conditions are met , the compiler can optimize the recursive calls in such 阅读全文
posted @ 2012-03-14 13:55 yoya I be Me 阅读(386) 评论(0) 推荐(0) 编辑