“letrec"如何?在不使用“set!"的情况下实现? [英] How is "letrec" implemented without using "set!"?
本文介绍了“letrec"如何?在不使用“set!"的情况下实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不使用set!
的情况下实现letrec
?
How can letrec
be implemented without using set!
?
在我看来,set!
是一种命令式编程结构,如果使用它,就会失去函数式编程的好处.
It seems to me that set!
is an imperative programming construct, and that by using it, one loses the benefits of functional programming.
推荐答案
我知道通常我们要求复制内容,但对于您的问题没有简短的答案.http://www.cs.indiana.edu/~dyb/pubs/fixing-letrec.pdf
I know usually we ask content to be copied but there is no short answer to your question. http://www.cs.indiana.edu/~dyb/pubs/fixing-letrec.pdf
这篇关于“letrec"如何?在不使用“set!"的情况下实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文