Lisp/Scheme中的'(撇号)是什么? [英] What is ' (apostrophe) in Lisp / Scheme?

查看:101
本文介绍了Lisp/Scheme中的'(撇号)是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正处于第1天的第1天自学计划.不用说,我什么都不懂.因此,我正在阅读小计划者并使用此东西:

I am on day 1 hour 1 of teaching myself Scheme. Needless to say, I don't understand anything. So I'm reading The Little Schemer and using this thing:

http://sisc-scheme.org/sisc-online.php

作为口译员.

例如,我需要使用'

(atom? 'turkey)

以避免出现未定义的变量"错误.根据这本书,'是Common Lisp的东西.

to avoid an "undefined variable" error. The ', according to the book, is a Common Lisp thing.

我有两个问题:

  1. 我上面提到的口译员很好吗?你能推荐另一个吗?我需要一个可以与 The Little Schemer 完美搭配的产品.

  1. Is the interpreter I mentioned above a good one? Can you recommend another? I need one that will go well with The Little Schemer.

什么是'?

推荐答案

表格'foo只是键入特殊表格的一种更快的方法

The form 'foo is simply a faster way to type the special form

(quote foo)

这就是说,不要评估名称foo并将其替换为它的值;我的意思是名称foo".

which is to say, "do not evaluate the name foo and replace it with its value; I really mean the name foo".

我认为SISC非常适合探索TLS中的练习.

I think SISC is perfectly fine for exploring the exercises in TLS.

这篇关于Lisp/Scheme中的'(撇号)是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆