文档详情

Common LISP Hints 中译.doc

发布:2017-12-19约5.06万字共43页下载文档
文本预览下载声明
《Common LISP Hints 中译》 《Common LISP Hints》 Geoffrey J. Gordon ggordon@ Friday, February 5, 1993 Modified by Bruno Haible haible@ma2s2.mathematik.uni-karlsruhe.de Transtalted to Traditional Chinese by Wei-Yueh Chen (陈玮岳) QUOTE: Note: This tutorial introduction to Common Lisp was written for the CMU environment, so some of the details of running lisp toward the end may differ from site to site. 注:本 Common Lisp 教学文件是针对 CMU 版本的 Lisp ,所以使用者之间可能会因为采用的 Lisp 版本不同,在执行细节上有些微差异。 QUOTE: Further Information The best LISP textbook I know of is Guy L. Steele Jr. _Common LISP: the Language_. Digital Press. 1984. The first edition is easier to read; the second describes a more recent standard. (The differences between the two standards shouldnt affect casual programmers.) A book by Dave Touretsky has also been recommended to me, although I havent read it, so I cant say anything about it. 我所知到最好的 Lisp 教科书是 Guy L. Steele Jr. 所写的 Common LISP: the Language ,该书是在 1984. 由 Digital Press 出版社所出版,它的第一版很容易读,第二版则描述了更多最新的标准。(对于一般的程序设计师而言,第一、二版关于最新标准的些微差异并不会有虾咪影响。) 另外还有一本由 Dave Touretsky 所写的书也有很多人跟我推荐,不过由于我并没有去读过,所以我也无法评论。 QUOTE: Symbols A symbol is just a string of characters. There are restrictions on what you can include in a symbol and what the first character can be, but as long as you stick to letters, digits, and hyphens, youll be safe. (Except that if you use only digits and possibly an initial hyphen, LISP will think you typed an integer rather than a symbol.) Some examples of symbols: a b c1 foo bar baaz-quux-garply Symbols(字符) symbol 就是一串字符,不过这串字符里面可以使用的字符跟起始的第一个字符是稍有限制的, 但是原则上只要你使用〝大小写字母、数字、减号(连接符号)〞来混合产生 symbol,应该就不会有问题。 (如果你只有使用使用数字的,并且至多在拿减号当启始字符,那将会被 Lisp 视为是数字,而不是 symbol 。) 下面是 symbol 的一些范例: a b c1 foo
显示全部
相似文档