gpt4 book ai didi

lisp - "A micro-manual for Scheme"?

转载 作者:太空宇宙 更新时间:2023-11-03 19:01:14 24 4
gpt4 key购买 nike

鉴于 LISP 显然可以用“LISP 微型手册”的“10 条规则”来表达 [1] [2] (这是真的吗?),是否有类似简洁的Scheme描述?

最佳答案

这里麦卡锡的“10 条规则”本质上是操作语义的早期形式。这份文件来自 1978 年,是在第一份 Scheme 报告之后 3 年写成的,其中 Abelson 和 Steele 提取了 LISP 的简单部分来创建 Scheme。 Scheme 和 LISP 都是移动目标,因此您必须通过说“这符合 当时的 方案”来限定比较。我声称您可以将此微型手册视为同样适用于 Scheme 和 LISP。

FWIW,McCarthy 的函数评估规则(下文)使用短语“在原始环境中”,这似乎需要避免捕获替换,因此需要词汇范围。

"9. value ((LAMBDA (v1 ... vn) e) e1 ... en) is the same as value e but in an environment in which the variables v1 ... vn take the values of the expressions e1 ... e1 in the original environment." [emphasis mine]

关于lisp - "A micro-manual for Scheme"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12580176/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com