On LISP

On LISP

作者:Paul Graham

出版社:Prentice Hall

出版年:09 September, 1993

评分:9.3

ISBN:9780130305527

所属分类:行业好书

书刊介绍

内容简介

On Lisp is a comprehensive study of advanced Lisp techniques, with bottom-up programming as the unifying theme. It gives the first complete description of macros and macro applications. The book also covers important subjects related to bottom-up programming, including functional programming, rapid prototyping, interactive development, and embedded languages. The final chapter takes a deeper look at object-oriented programming than previous Lisp books, showing the step-by-step construction of a working model of the Common Lisp Object System (CLOS).

As well as an indispensable reference, On Lisp is a source of software. Its examples form a library of functions and macros that readers will be able to use in their own Lisp programs.

精彩摘录

(defunlrec(rec&optionalbase)(labels((self(lst)(if(nulllst)(if(functionpbase)(funcallbase)base)(funcallrec(carlst)#'(lambda()(self(cdrlst)))))))

——引自第69页


(lrec#'(lambda(xf)(1+(funcallf)))0)(lrec#'(lambda(xf)(and(oddpx)(funcallf)))t)

——引自第69页

相关推荐

微信二维码