|PART II: PROGRAMMING IN PURE LISP
- Part II is the heart of the text/course. Here, you will learn
how to write Common Lisp programs. However, in Part II, we will stick
with "pure Lisp"---a subset of Lisp that forms a functional
programming language. In pure Lisp, a program is a set of nested,
often recursive, functions. You run the program by evaluating a main
function on a set of arguments, and it returns a value.
- The heart of Part II is Chapters 15 through 18. These
chapters cover the techniques of recursive programming. You may have
written recursive functions before, but I hope that you will be much
better at it after working through these chapters.
- What is missing in pure Lisp? Several things that you
probably rely on most in other, imperative, programming languages---an
assignment statement, reading, printing, and iteration. Common Lisp
has these, and we will get to them in Part III, but after getting used
to programming without them, you will be in a much better position to
choose your programming style according to the particular problem you
are working on. Notice that, not only does Common Lisp have both
functional and imperative parts, so do other programming languages,
and I hope that after working through this course, you will be able to
use recursion and a functional programming style in all your programming.
- When you finish Part II, you will have earned a grade of B- in
the course. Have fun!