How is “letrec” implemented without using “set!”?
问题 How can letrec be implemented without using set! ? It seems to me that set! is an imperative programming construct, and that by using it, one loses the benefits of functional programming. 回答1: 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 回答2: No. Just because a functional feature is implemented with imperative code behind the scenes, that doesn't make the feature be imperative. Our computing