我正在用 Scheme (DrRacket Pretty Big) 写一个愚蠢的 letrec:
(letrec
((is-creative?
(lambda (writing)
(if (null? writing)
#f
(is-creative?
(eval writing))))))
(is-creative?
(quote is-creative?)))
语法检查没问题,但运行失败:
reference to undefined identifier: is-creative?
调试器在故障点说:
is-creative? => #<procedure:is-creative?>
你能告诉我我错过了什么吗?更正也很好,但请不要定义,虽然没有必要。
谢谢!